mirror of
https://github.com/apache/cloudstack
synced 2026-08-02 05:26:35 +00: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…
Reference in New Issue
Block a user