just fixed error message

git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/data-transfer/uri-resolver@173752 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Francesco Mangiacrapa 2018-10-22 15:09:54 +00:00
parent d2ebd20f3c
commit 2d72dfcf59
1 changed files with 2 additions and 2 deletions

View File

@ -60,7 +60,7 @@ public class StorageHubResolver {
}catch(Exception e){
logger.error("Error on getting file with "+id, e);
String errorMsg = "Error on getting file with hub id "+id+". "+e.getMessage();
String errorMsg = "Error on getting file with hub id '"+id+"'. "+e.getMessage();
throw new InternalServerException(httpRequest, Status.INTERNAL_SERVER_ERROR, errorMsg, StorageHubResolver.class, null);
}
}
@ -101,7 +101,7 @@ public class StorageHubResolver {
.header("content-disposition","attachment; filename = \""+descriptor.getFileName()+"\"").build();
}catch(Exception e){
String errorMsg = "Error on getting versioned file with hub id "+id+ " and version: "+version;
String errorMsg = "Error on getting versioned file with hub id '"+id+ "' and version '"+version+"'";
logger.error(errorMsg, e);
throw new InternalServerException(httpRequest, Status.INTERNAL_SERVER_ERROR, errorMsg, StorageHubResolver.class, null);
}