error messages
This commit is contained in:
parent
0f687ae98f
commit
a147c29c51
|
@ -59,7 +59,7 @@ public class ResourceValidator {
|
|||
try {
|
||||
validator.validate(new StreamSource(new StringReader(content)));
|
||||
} catch (final Exception e) {
|
||||
throw new InformationServiceException("invalid resource", e);
|
||||
throw new InformationServiceException(e.getMessage(), e);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -86,7 +86,7 @@ public class ResourceValidator {
|
|||
try {
|
||||
mapper.readValue(content, clazz);
|
||||
} catch (final Exception e) {
|
||||
throw new InformationServiceException("invalid resource", e);
|
||||
throw new InformationServiceException(e.getMessage(), e);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue