Skip to content

Commit

Permalink
[fix][admin] Fix exception thrown in getMessageId method (apache#23784)
Browse files Browse the repository at this point in the history
Co-authored-by: houbonan <[email protected]>
  • Loading branch information
danpi and houbonan authored Jan 3, 2025
1 parent f199e88 commit 1f7a79f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2776,6 +2776,7 @@ public void readEntryFailed(ManagedLedgerException exception,
if (exception instanceof ManagedLedgerException.LedgerNotExistException) {
results.completeExceptionally(
new RestException(Status.NOT_FOUND, "Message id not found"));
return;
}
results.completeExceptionally(new RestException(exception));
}
Expand Down

0 comments on commit 1f7a79f

Please sign in to comment.