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:
root 2013-12-10 16:34:42 +05:30 committed by Abhinandan Prateek
parent dd039da7e4
commit a74fe8d2aa
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}

View File

@ -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);