Skip to content

Commit

Permalink
revised exception message
Browse files Browse the repository at this point in the history
  • Loading branch information
atGit2021 committed Jun 4, 2024
1 parent 138fdb8 commit 2016be4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/workflow/workflow.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export const findTransition = <T extends { key: ID }>(
) => {
const transition = transitions.find((t) => t.key === needle);
if (!transition) {
throw new UnauthorizedException('This transition is not available');
throw new UnauthorizedException('This transition does not exist.');
}
return transition;
};

0 comments on commit 2016be4

Please sign in to comment.