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.message = errorsLog.error[0];
|
||||
// escape quotes for logs
|
||||
// remove double quotes for logs
|
||||
errorsLog.message = errorsLog.message.replace(/"/g, "");
|
||||
delete errorsLog.error;
|
||||
|
||||
|
@ -28,4 +28,4 @@ describe('error handler', function () {
|
||||
done();
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user