Set error message from exception
Signed-off-by: Asharani <asharani.murugesh@in.bosch.com>
This commit is contained in:
@@ -333,8 +333,12 @@ public class UploadHandler implements StreamVariable, Receiver, SucceededListene
|
|||||||
final SoftwareModule sw = view.getSoftwareModuleSelected();
|
final SoftwareModule sw = view.getSoftwareModuleSelected();
|
||||||
view.getFileSelected().remove(new CustomFile(fileName, sw.getName(), sw.getVersion()));
|
view.getFileSelected().remove(new CustomFile(fileName, sw.getName(), sw.getVersion()));
|
||||||
}
|
}
|
||||||
view.updateActionCount();
|
eventBus.publish(this, UploadArtifactUIEvent.UPLOAD_STREAMINING_FINISHED);
|
||||||
infoWindow.uploadFailed(event.getFilename(), failureReason);
|
if (failureReason != null) {
|
||||||
|
infoWindow.uploadFailed(event.getFilename(), failureReason);
|
||||||
|
} else {
|
||||||
|
infoWindow.uploadFailed(event.getFilename(), event.getReason().getMessage());
|
||||||
|
}
|
||||||
LOG.info("Upload failed for file :{}", event.getReason());
|
LOG.info("Upload failed for file :{}", event.getReason());
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user