From d644ee2f22ec1fd229b2fbffd3c70f1481766c6e Mon Sep 17 00:00:00 2001 From: Costantino Perciante Date: Mon, 8 May 2017 08:35:14 +0000 Subject: [PATCH] improved exception handling for fields with vocabulary git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/catalogue-ws@148346 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../org/gcube/datacatalogue/catalogue/utils/CatalogueUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/gcube/datacatalogue/catalogue/utils/CatalogueUtils.java b/src/main/java/org/gcube/datacatalogue/catalogue/utils/CatalogueUtils.java index 9228deb..8cbd5e7 100644 --- a/src/main/java/org/gcube/datacatalogue/catalogue/utils/CatalogueUtils.java +++ b/src/main/java/org/gcube/datacatalogue/catalogue/utils/CatalogueUtils.java @@ -750,7 +750,7 @@ public class CatalogueUtils { } if(!match) - throw new Exception("Field with key '" + key + " doesn't match any of the vocabulary's values!"); + throw new Exception("Field with key '" + key + "' has a value '" + value + "' but it doesn't match any of the vocabulary's values!"); }