fix on exception

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/Common/storagehub-client-wrapper@172036 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Francesco Mangiacrapa 2018-10-08 13:35:39 +00:00
parent 438320ec21
commit 9112424306
1 changed files with 2 additions and 1 deletions

View File

@ -703,13 +703,14 @@ public final class WorkspaceStorageHubClientService implements Workspace{
toReturnItems.add(HLMapper.toWorkspaceItem(movedItem));
}catch(Exception e){
logger.error("Error on moving the item with id: "+itemId+ " in the folder id: "+destFolderContainer.get().getId(), e);
throw e;
}
}
return toReturnItems;
} catch (Exception e) {
logger.error("Error on moving item/items in the folder with id: "+folderDestinationId, e);
logger.error("Error on moving item in the folder with id: "+folderDestinationId + e.getMessage());
String error = e.getMessage()!=null?e.getMessage():"";
throw new Exception("Error on moving item/s. "+error);
}