Skip to content

Commit

Permalink
chore: fix error message
Browse files Browse the repository at this point in the history
  • Loading branch information
roggervalf committed Feb 21, 2024
1 parent ec8fb15 commit 828850b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/classes/scripts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ export class Scripts {
);
case ErrorCode.ParentJobCannotBeReplaced:
return new Error(
`The parent job of job ${jobId} cannot be replaced. ${command}`,
`The parent job ${parentKey} cannot be replaced. ${command}`,
);
default:
return new Error(`Unknown code ${code} error for ${jobId}. ${command}`);
Expand Down
2 changes: 1 addition & 1 deletion tests/test_flow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1665,7 +1665,7 @@ describe('flows', () => {
},
),
).to.be.rejectedWith(
`The parent job of job ${prefix}:${queueName}:wed cannot be replaced. addJob`,
`The parent job ${prefix}:${queueName}:wed cannot be replaced. addJob`,
);

await flow.close();
Expand Down

0 comments on commit 828850b

Please sign in to comment.