diff --git a/src/main/java/org/gcube/datatransfer/resolver/services/StorageHubResolver.java b/src/main/java/org/gcube/datatransfer/resolver/services/StorageHubResolver.java index 6f2b9c1..550ee9d 100644 --- a/src/main/java/org/gcube/datatransfer/resolver/services/StorageHubResolver.java +++ b/src/main/java/org/gcube/datatransfer/resolver/services/StorageHubResolver.java @@ -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); }