Closed Michieljoris closed 9 years ago
On line 147 an any thrown errors are propagated. However this is happening in a async callback of fs.readFile.
This crashes the client app since it can't catch the error. Perhaps use either fs.readFileSync or replace throw e with cb(err).
throw e
cb(err)
I've done the latter in my fork so I can handle the error.
a PR / failing test would be nice if you have already fixed this
On line 147 an any thrown errors are propagated. However this is happening in a async callback of fs.readFile.
This crashes the client app since it can't catch the error. Perhaps use either fs.readFileSync or replace
throw e
withcb(err)
.I've done the latter in my fork so I can handle the error.