error messages

This commit is contained in:
Michele Artini 2022-12-06 10:24:53 +01:00
parent 0f687ae98f
commit a147c29c51
1 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@ public class ResourceValidator {
try { try {
validator.validate(new StreamSource(new StringReader(content))); validator.validate(new StreamSource(new StringReader(content)));
} catch (final Exception e) { } catch (final Exception e) {
throw new InformationServiceException("invalid resource", e); throw new InformationServiceException(e.getMessage(), e);
} }
} }
@ -86,7 +86,7 @@ public class ResourceValidator {
try { try {
mapper.readValue(content, clazz); mapper.readValue(content, clazz);
} catch (final Exception e) { } catch (final Exception e) {
throw new InformationServiceException("invalid resource", e); throw new InformationServiceException(e.getMessage(), e);
} }
} }