Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

Commit

Permalink
Rework excpetion message while waiting for status
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriel-farache committed Jul 3, 2023
1 parent 617d688 commit bc5c930
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ public static WorkFlowStatusResponseDTO waitWorkflowStatusAsync(WorkflowApi work
}
if (status.getStatus() != expectedStatus) {
throw new WrongStatusException(
"Workflow status is not %s, it is %s ".formatted(expectedStatus, status.getStatus()));
"Workflow is finished and its status is %s while was expecting it to be %s"
.formatted(status.getStatus(), expectedStatus));
}
return status;
};
Expand Down

0 comments on commit bc5c930

Please sign in to comment.