Skip to content

Commit

Permalink
Fix exceptionm type.
Browse files Browse the repository at this point in the history
  • Loading branch information
jcferretti committed Mar 13, 2024
1 parent 6c918c1 commit 7c86247
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ private RuntimeException convertException(Throwable e) {
if (cause instanceof StatusRuntimeException) {
StatusRuntimeException exception = (StatusRuntimeException) cause;
if (isNotLeaderException(exception)) {
return new NotLeaderException();
return new NoLeaderException();
}
}
cause = cause.getCause();
Expand Down

0 comments on commit 7c86247

Please sign in to comment.