line at EOF and better comment
This commit is contained in:
parent
6481d14192
commit
3fa09a007e
@ -64,7 +64,7 @@ function setErrorHeader(err, statusCode, res) {
|
|||||||
|
|
||||||
errorsLog.statusCode = statusCode || 200;
|
errorsLog.statusCode = statusCode || 200;
|
||||||
errorsLog.message = errorsLog.error[0];
|
errorsLog.message = errorsLog.error[0];
|
||||||
// escape quotes for logs
|
// remove double quotes for logs
|
||||||
errorsLog.message = errorsLog.message.replace(/"/g, "");
|
errorsLog.message = errorsLog.message.replace(/"/g, "");
|
||||||
delete errorsLog.error;
|
delete errorsLog.error;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user