Skip to content

Commit

Permalink
Send 500 for server errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
vaibhavqrcg authored Jul 8, 2024
1 parent d19b419 commit 87c0d32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const handler = async (event) => {
};
} catch (err) {
return createErrorResponse(
422,
500,
err.message || "Error encountered while capturing screenshot.",
);
}
Expand Down

0 comments on commit 87c0d32

Please sign in to comment.