Skip to content

Commit

Permalink
MAINT-2550 Update response with FAILED status and error message
Browse files Browse the repository at this point in the history
  • Loading branch information
CoderMChu committed May 9, 2024
1 parent bff2011 commit 6c6931b
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,8 @@ private void init() throws ServiceException {
} else if (timeout) {
newStatus = ClassificationStatus.FAILED;
classification.setErrorMessage("Remote service taking too long.");
statusResponse.setStatus(newStatus);
statusResponse.setErrorMessage(classification.getErrorMessage());
}

// Stop polling if no longer needed after timeout or processed
Expand Down

0 comments on commit 6c6931b

Please sign in to comment.