line at EOF and better comment

This commit is contained in:
Simon Martín 2017-12-12 17:16:40 +01:00
parent 6481d14192
commit 3fa09a007e
2 changed files with 2 additions and 2 deletions

View File

@ -64,7 +64,7 @@ function setErrorHeader(err, statusCode, res) {
errorsLog.statusCode = statusCode || 200;
errorsLog.message = errorsLog.error[0];
// escape quotes for logs
// remove double quotes for logs
errorsLog.message = errorsLog.message.replace(/"/g, "");
delete errorsLog.error;