Skip to content
Snippets Groups Projects
Commit 4c71fa1a authored by Tor-Einar Skog's avatar Tor-Einar Skog
Browse files

Reducing the amount of debug output from a config value exception

parent f921f688
Branches
Tags
No related merge requests found
...@@ -343,7 +343,7 @@ public class ModelResourceImpl implements ModelResource{ ...@@ -343,7 +343,7 @@ public class ModelResourceImpl implements ModelResource{
Logger.getLogger(ModelResourceImpl.class.getName()).log(Level.SEVERE, null, ex); Logger.getLogger(ModelResourceImpl.class.getName()).log(Level.SEVERE, null, ex);
if(ex instanceof ConfigValidationException){ if(ex instanceof ConfigValidationException){
throw new WebApplicationException(Response.status(Response.Status.BAD_REQUEST).entity(ex).build()); throw new WebApplicationException(Response.status(Response.Status.BAD_REQUEST).entity(ex.getMessage()).build());
} }
else else
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment