mirror of https://github.com/apache/cloudstack.git
add error message for ResourceAllocationException in DeployVMCmd.java
(cherry picked from commit e74d8a1d14)
This commit is contained in:
parent
58d1e6fd5b
commit
a7c91fea67
|
|
@ -528,6 +528,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