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
This commit is contained in:
parent
5d5b872f08
commit
d644ee2f22
|
@ -750,7 +750,7 @@ public class CatalogueUtils {
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!match)
|
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!");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in New Issue