Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: Payload Generator improvements SO-232 #322

Merged
merged 14 commits into from
May 27, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: throw exception so that it's an application/problem-json
  • Loading branch information
XVincentX committed May 25, 2019
commit 1270970ecd4ff44a1ccfb4efde14762ce20f19d9
2 changes: 1 addition & 1 deletion packages/http-server/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ const replyHandler = <LoaderInput>(

reply.send(output.body);
} else {
reply.code(500).send('Unable to find any decent response for the current request.');
throw new Error('Unable to find any decent response for the current request.');
}
} catch (e) {
const status = 'status' in e ? e.status : 500;
Expand Down