Write error message to response when serving errors

This commit is contained in:
Misha Wolfson 2016-12-22 13:05:21 -06:00
parent 4212ddaee7
commit 924afec7c2

View file

@ -98,7 +98,7 @@ var spserver = function (settings) {
logger.error(err);
res.writeHead(err.status, err.headers);
res.end();
res.end(err.message);
}
}
});