diff options
Diffstat (limited to 'src/org.gluster.storage.management.console/src/org/gluster/storage/management/console/actions/RebalanceVolumeAction.java')
-rw-r--r-- | src/org.gluster.storage.management.console/src/org/gluster/storage/management/console/actions/RebalanceVolumeAction.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/org.gluster.storage.management.console/src/org/gluster/storage/management/console/actions/RebalanceVolumeAction.java b/src/org.gluster.storage.management.console/src/org/gluster/storage/management/console/actions/RebalanceVolumeAction.java index 2f8d8f61..4e1d7127 100644 --- a/src/org.gluster.storage.management.console/src/org/gluster/storage/management/console/actions/RebalanceVolumeAction.java +++ b/src/org.gluster.storage.management.console/src/org/gluster/storage/management/console/actions/RebalanceVolumeAction.java @@ -54,7 +54,12 @@ public class RebalanceVolumeAction extends AbstractActionDelegate { if (taskInfo != null) { GlusterDataModelManager.getInstance().addTask(taskInfo); } - showInfoDialog(actionDesc, "Volume [" + volume.getName() + "] rebalance started successfully!"); + if (taskInfo.getStatus().getCode() == Status.STATUS_CODE_ERROR) { + showWarningDialog(actionDesc, "Volume [" + volume.getName() + + "] rebalance started, but following error occured: " + taskInfo.getStatus()); + } else { + showInfoDialog(actionDesc, "Volume [" + volume.getName() + "] rebalance started successfully!"); + } guiHelper.showTaskView(); } catch (Exception e) { showErrorDialog(actionDesc, "Volume rebalance could not be started on [" + volume.getName() + "]! Error: [" |