Skip to content

Commit

Permalink
Add method/path information to alternative errors
Browse files Browse the repository at this point in the history
  • Loading branch information
misscoded committed Oct 8, 2021
1 parent 11a8854 commit f0b17f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/receivers/HTTPReceiver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ export default class HTTPReceiver implements Receiver {
res.writeHead(404);
res.end();
} else {
this.logger.error('An unexpected error was encountered');
this.logger.error(`An unexpected error occurred during a request (${req.method}) made to ${req.url}`);
this.logger.debug(`Error details: ${e}`);
res.writeHead(500);
res.end();
Expand Down

0 comments on commit f0b17f4

Please sign in to comment.