Write error message to response when serving errors
This commit is contained in:
parent
4212ddaee7
commit
924afec7c2
1 changed files with 1 additions and 1 deletions
|
@ -98,7 +98,7 @@ var spserver = function (settings) {
|
||||||
logger.error(err);
|
logger.error(err);
|
||||||
|
|
||||||
res.writeHead(err.status, err.headers);
|
res.writeHead(err.status, err.headers);
|
||||||
res.end();
|
res.end(err.message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue