mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
server: rethrow takeVMSnapshot() exception instead of returning null (#3546)
Fixes NPE, and throws actual exception with the error stacktrace Fixes: #3518
This commit is contained in:
parent
7a86ca7fb5
commit
29e1bbc22d
@ -515,7 +515,7 @@ public class VMSnapshotManagerImpl extends MutualExclusiveIdsManagerBase impleme
|
||||
return snapshot;
|
||||
} catch (Exception e) {
|
||||
s_logger.debug("Failed to create vm snapshot: " + vmSnapshotId, e);
|
||||
return null;
|
||||
throw new CloudRuntimeException("Failed to create vm snapshot: " + vmSnapshotId, e);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user