Skip to content

Commit a74fe8d

Browse files
rootAbhinandan Prateek
authored andcommitted
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>
1 parent dd039da commit a74fe8d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎core/src/com/cloud/agent/api/MigrateWithStorageAnswer.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public class MigrateWithStorageAnswer extends Answer {
2525
List<VolumeObjectTO> volumeTos;
2626

2727
public MigrateWithStorageAnswer(MigrateWithStorageCommand cmd, Exception ex) {
28-
super(cmd, ex);
28+
super(cmd, false, ex.getLocalizedMessage());
2929
volumeTos = null;
3030
}
3131

‎plugins/hypervisors/vmware/src/org/apache/cloudstack/storage/motion/VmwareStorageMotionStrategy.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public Void copyAsync(Map<VolumeInfo, DataStore> volumeMap, VirtualMachineTO vmT
105105
}
106106
} catch (Exception e) {
107107
s_logger.error("copy failed", e);
108-
errMsg = e.toString();
108+
errMsg = e.getLocalizedMessage();
109109
}
110110

111111
CopyCommandResult result = new CopyCommandResult(null, answer);

0 commit comments

Comments
 (0)