429: Workspace: uploading big files

Task-Url: https://support.d4science.org/issues/429

Refactor on status description

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/widgets/workspace-uploader@119831 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Francesco Mangiacrapa 2015-10-16 12:22:28 +00:00
parent 26b3919801
commit 40d85e32f3
1 changed files with 3 additions and 3 deletions

View File

@ -101,7 +101,7 @@ public class WorkspaceUploaderMng {
| IOException e) {
logger.error("Error during upload: ",e);
workspaceUploader.setUploadStatus(UPLOAD_STATUS.FAILED);
workspaceUploader.setStatusDescription("An error occurred during upload: "+itemName+": "+e.getMessage());
workspaceUploader.setStatusDescription("An error occurred during upload: "+itemName+". "+e.getMessage());
try {
WsUtil.putWorkspaceUploaderInSession(httpSession, workspaceUploader);
} catch (Exception e1) {
@ -110,7 +110,7 @@ public class WorkspaceUploaderMng {
} catch (ItemNotFoundException | WrongItemTypeException | WorkspaceFolderNotFoundException | WrongDestinationException e) {
logger.error("Error during overwrite: ",e);
workspaceUploader.setUploadStatus(UPLOAD_STATUS.FAILED);
workspaceUploader.setStatusDescription("An error occurred during upload: "+itemName+": "+e.getMessage());
workspaceUploader.setStatusDescription("An error occurred during upload: "+itemName+". "+e.getMessage());
try {
WsUtil.putWorkspaceUploaderInSession(httpSession, workspaceUploader);
} catch (Exception e1) {
@ -160,7 +160,7 @@ public class WorkspaceUploaderMng {
} catch (InternalErrorException e) {
logger.error("Error during uploading: ",e);
workspaceUploader.setUploadStatus(UPLOAD_STATUS.FAILED);
workspaceUploader.setStatusDescription("An error occurred during upload: "+itemName+": "+e.getMessage());
workspaceUploader.setStatusDescription("An error occurred during upload: "+itemName+". "+e.getMessage());
try {
WsUtil.putWorkspaceUploaderInSession(httpSession, workspaceUploader);
} catch (Exception e1) {