Skip to content

Commit

Permalink
chore: adjust the message to be specific
Browse files Browse the repository at this point in the history
  • Loading branch information
barmac committed Dec 12, 2024
1 parent e97d00c commit 487fbc6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/utils/error-messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ function getExtensionElementRequiredErrorMessage(report, executionPlatform, exec
}

if (requiredExtensionElement === 'zeebe:UserTask') {
return `${ getIndefiniteArticle(typeString) } <${ typeString }> with <Implementation: Job worker> is deprecated on ${ getExecutionPlatformLabel(executionPlatform, executionPlatformVersion) }. Consider migrating to <Implementation: Camunda user task>.`;
return `${ getIndefiniteArticle(typeString) } <${ typeString }> with <Implementation: Job worker> managed by Camunda is deprecated. Consider migrating to <Implementation: Camunda user task>.`;
}

return message;
Expand Down
2 changes: 1 addition & 1 deletion test/spec/utils/error-messages.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,7 @@ describe('utils/error-messages', function() {
const errorMessage = getErrorMessage(report, 'Camunda Cloud', executionPlatformVersion);

// then
expect(errorMessage).to.equal('A <User Task> with <Implementation: Job worker> is deprecated on Camunda 8.6. Consider migrating to <Implementation: Camunda user task>.');
expect(errorMessage).to.equal('A <User Task> with <Implementation: Job worker> managed by Camunda is deprecated. Consider migrating to <Implementation: Camunda user task>.');
});

});
Expand Down

0 comments on commit 487fbc6

Please sign in to comment.