Skip to content
This repository has been archived by the owner on Feb 28, 2022. It is now read-only.

Commit

Permalink
display more useful output on errors #187
Browse files Browse the repository at this point in the history
  • Loading branch information
rofe committed Feb 21, 2019
1 parent 5dc0e80 commit f484ae5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/html/set-status.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ function setStatus({ response = {}, error }, { logger }) {
return {
response: {
status: 500,
body: '',
headers: {
'Content-Type': 'text/html',
},
body: `<html><body><h1>500</h1><p>${error}</p></body></html>`,
},
};
}
Expand Down

0 comments on commit f484ae5

Please sign in to comment.