Skip to content

Commit e74d8a1

Browse files
committed
add error message for ResourceAllocationException in DeployVMCmd.java
1 parent 17a1865 commit e74d8a1

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎api/src/org/apache/cloudstack/api/command/user/vm/DeployVMCmd.java‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -527,6 +527,9 @@ public void create() throws ResourceAllocationException{
527527
} catch (ConcurrentOperationException ex) {
528528
s_logger.warn("Exception: ", ex);
529529
throw new ServerApiException(ApiErrorCode.INTERNAL_ERROR, ex.getMessage());
530+
} catch (ResourceAllocationException ex) {
531+
s_logger.warn("Exception: ", ex);
532+
throw new ServerApiException(ApiErrorCode.RESOURCE_ALLOCATION_ERROR, ex.getMessage());
530533
}
531534
}
532535

0 commit comments

Comments
 (0)