mirror of https://github.com/apache/cloudstack.git
add error message for ResourceAllocationException in DeployVMCmd.java
This commit is contained in:
parent
17a186557d
commit
e74d8a1d14
|
|
@ -527,6 +527,9 @@ public class DeployVMCmd extends BaseAsyncCreateCmd {
|
|||
} catch (ConcurrentOperationException ex) {
|
||||
s_logger.warn("Exception: ", ex);
|
||||
throw new ServerApiException(ApiErrorCode.INTERNAL_ERROR, ex.getMessage());
|
||||
} catch (ResourceAllocationException ex) {
|
||||
s_logger.warn("Exception: ", ex);
|
||||
throw new ServerApiException(ApiErrorCode.RESOURCE_ALLOCATION_ERROR, ex.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue