Skip to content

Commit

Permalink
fix: Ensure original error is also logged
Browse files Browse the repository at this point in the history
  • Loading branch information
DafyddLlyr committed Jan 4, 2024
1 parent 2e5e0aa commit 7565f2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api.planx.uk/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const insertFlow = async (
return { id };
} catch (error) {
throw Error(
`User ${creatorId} failed to insert flow to teamId ${teamId}. Please check permissions.`,
`User ${creatorId} failed to insert flow to teamId ${teamId}. Please check permissions. Error: ${error}`,
);
}
};
Expand Down

0 comments on commit 7565f2d

Please sign in to comment.