mirror of https://github.com/apache/cloudstack.git
Fix error message for checkVolume command (#8842)
This commit is contained in:
parent
44b8d3af0c
commit
8511014707
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue