Skip to content

Commit

Permalink
chore: add more information to the error message we get when failing …
Browse files Browse the repository at this point in the history
…to save a submission (#673)
  • Loading branch information
craigzour authored Jun 3, 2024
1 parent 8896e88 commit 1265b9c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lambda-code/submission/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,11 @@ const saveSubmission = async (submissionId: string, formData: AnyObject): Promis
})
);
} catch (error) {
throw new Error("Could not save submission to Reliability Temporary Storage");
throw new Error(
`Could not save submission to Reliability Temporary Storage. Reason: ${
(error as Error).message
}`
);
}
};

Expand Down

0 comments on commit 1265b9c

Please sign in to comment.