Set error message from exception

Signed-off-by: Asharani <asharani.murugesh@in.bosch.com>
This commit is contained in:
Asharani
2016-05-06 10:28:50 +05:30
parent 8a976cabad
commit 68ab2eb30e

View File

@@ -333,8 +333,12 @@ public class UploadHandler implements StreamVariable, Receiver, SucceededListene
final SoftwareModule sw = view.getSoftwareModuleSelected();
view.getFileSelected().remove(new CustomFile(fileName, sw.getName(), sw.getVersion()));
}
view.updateActionCount();
infoWindow.uploadFailed(event.getFilename(), failureReason);
eventBus.publish(this, UploadArtifactUIEvent.UPLOAD_STREAMINING_FINISHED);
if (failureReason != null) {
infoWindow.uploadFailed(event.getFilename(), failureReason);
} else {
infoWindow.uploadFailed(event.getFilename(), event.getReason().getMessage());
}
LOG.info("Upload failed for file :{}", event.getReason());
}