Skip to content

Commit fc236a0

Browse files
author
standlove
committed
return failed lineNo
1 parent 52f72fb commit fc236a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ module.exports = {
3939
result = await handler.method(req, h);
4040
} catch (e) {
4141
logger.error(e);
42-
result = {code: e.status, message: e.message}
42+
result = {code: e.status, message: e.message, line: e.lineNo || -1}
4343
status = e.status || 500;
4444
}
4545
return injectHeader(h.response(result).code(status));

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy