Skip to content

Commit e59e91b

Browse files
author
Joel Denning
authored
Log errors to stderr (#170)
1 parent 0a414c6 commit e59e91b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/web-server.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ function getEnv(req) {
6262
}
6363

6464
function sendError(res, ex, prefix) {
65+
console.error(ex);
6566
const status =
6667
ex && ex.message && /No such environment/.test(ex.message) ? 404 : 500;
6768
res.status(status).send(`${prefix} -- ${ex.toString()}`);

0 commit comments

Comments
 (0)