Skip to content

Commit

Permalink
fixing error message
Browse files Browse the repository at this point in the history
  • Loading branch information
LuciaM1 committed Jul 31, 2024
1 parent 8d77603 commit 480464a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public Uni<BpmnVersion> save(BpmnVersion bpmnVersion) {
return this.findBySHA256(bpmnVersion.getSha256())
.onItem().transform(Unchecked.function(x -> {
if (x.isPresent()) {
throw new AtmLayerException(AppErrorCodeEnum.BPMN_FILE_WITH_SAME_CONTENT_ALREADY_EXIST.getErrorMessage(), Response.Status.BAD_REQUEST, BPMN_FILE_WITH_SAME_CONTENT_ALREADY_EXIST);
throw new AtmLayerException(String.format("Esiste già un file BPMN con lo stesso contenuto: %s , versione %s", x.get().getResourceFile().getFileName(), x.get().getModelVersion()), Response.Status.BAD_REQUEST, BPMN_FILE_WITH_SAME_CONTENT_ALREADY_EXIST);
}
return x;
}))
Expand Down

0 comments on commit 480464a

Please sign in to comment.