This is an automated email from the ASF dual-hosted git repository. rohit pushed a commit to branch 4.19 in repository https://gitbox.apache.org/repos/asf/cloudstack.git
The following commit(s) were added to refs/heads/4.19 by this push: new 85110147071 Fix error message for checkVolume command (#8842) 85110147071 is described below commit 851101470718fa734d448fb57ce3b812c22bc626 Author: Vishesh <vishes...@gmail.com> AuthorDate: Wed Apr 17 17:27:27 2024 +0530 Fix error message for checkVolume command (#8842) --- server/src/main/java/com/cloud/storage/VolumeApiServiceImpl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/src/main/java/com/cloud/storage/VolumeApiServiceImpl.java b/server/src/main/java/com/cloud/storage/VolumeApiServiceImpl.java index 8679221107d..02add0db174 100644 --- a/server/src/main/java/com/cloud/storage/VolumeApiServiceImpl.java +++ b/server/src/main/java/com/cloud/storage/VolumeApiServiceImpl.java @@ -1895,7 +1895,8 @@ public class VolumeApiServiceImpl extends ManagerBase implements VolumeApiServic } 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); } }