Skip to content

Commit

Permalink
fix: print the correct error message when submitting a claim fails in
Browse files Browse the repository at this point in the history
`submit-claims-from-csv`
  • Loading branch information
timrogers committed Aug 1, 2023
1 parent 9ca524f commit 9448fa9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export const actionRunner = (fn: (...args) => Promise<any>) => {

export const serializeError = (e: any): string => {
if (typeof e === 'string') return e;
if (e instanceof Error) return e.message;
return JSON.stringify(e);
};

Expand Down

0 comments on commit 9448fa9

Please sign in to comment.