Skip to content

Commit

Permalink
Fix error message for checkVolume command (apache#8842)
Browse files Browse the repository at this point in the history
  • Loading branch information
vishesh92 authored Apr 17, 2024
1 parent 44b8d3a commit 8511014
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1895,7 +1895,8 @@ private Pair<String, String> handleCheckAndRepairVolumeJob(Long vmId, Long volum
} else if (jobResult instanceof ResourceAllocationException) {
throw (ResourceAllocationException)jobResult;
} else if (jobResult instanceof Throwable) {
throw new RuntimeException("Unexpected exception", (Throwable)jobResult);
Throwable throwable = (Throwable) jobResult;
throw new RuntimeException(String.format("Unexpected exception: %s", throwable.getMessage()), throwable);
}
}

Expand Down

0 comments on commit 8511014

Please sign in to comment.