This commit is contained in:
Lucio Lelii 2018-10-24 13:22:33 +00:00
parent 6d3d9e2faa
commit 7069e5e1e3
2 changed files with 7 additions and 1 deletions

View File

@ -40,6 +40,12 @@
<version>4.10</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>gov.nih.imagej</groupId>
<artifactId>imagej</artifactId>
<version>1.47</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.gcube.common</groupId>
<artifactId>storagehub-model</artifactId>

View File

@ -290,7 +290,7 @@ public class DefaultItemManager implements ItemManagerClient {
if (response.hasException())
throw response.getException();
else
throw new BackendGenericError();
throw new BackendGenericError("error response from the service with code: "+response.getHTTPCode());
}
ItemWrapper<Item> item = response.getSource().readEntity(ItemWrapper.class);