returns entire error on item create instead of message only
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/catalogue-ws@160587 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
237b98f08d
commit
a76b9d36af
|
@ -115,7 +115,7 @@ public class Item {
|
|||
if(e instanceof ParseException)
|
||||
return CatalogueUtils.createJSONOnFailure("Failed to parse incoming json!");
|
||||
else
|
||||
return CatalogueUtils.createJSONOnFailure(e.getMessage());
|
||||
return CatalogueUtils.createJSONOnFailure(e.toString());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Reference in New Issue