mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-4597: Complete Exceptions are getting displayed on the UI where there is an operation failuire in sotrage migration
Signed-off-by: Abhinandan Prateek <aprateek@apache.org>
This commit is contained in:
parent
dd039da7e4
commit
a74fe8d2aa
|
|
@ -25,7 +25,7 @@ public class MigrateWithStorageAnswer extends Answer {
|
|||
List<VolumeObjectTO> volumeTos;
|
||||
|
||||
public MigrateWithStorageAnswer(MigrateWithStorageCommand cmd, Exception ex) {
|
||||
super(cmd, ex);
|
||||
super(cmd, false, ex.getLocalizedMessage());
|
||||
volumeTos = null;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -105,7 +105,7 @@ public class VmwareStorageMotionStrategy implements DataMotionStrategy {
|
|||
}
|
||||
} catch (Exception e) {
|
||||
s_logger.error("copy failed", e);
|
||||
errMsg = e.toString();
|
||||
errMsg = e.getLocalizedMessage();
|
||||
}
|
||||
|
||||
CopyCommandResult result = new CopyCommandResult(null, answer);
|
||||
|
|
|
|||
Loading…
Reference in New Issue