[Minor] don't send whole strack trace to client

This commit is contained in:
Robert von Burg 2014-11-28 22:50:10 +01:00
parent 50b341a498
commit fd07280edf
1 changed files with 1 additions and 1 deletions

View File

@ -20,6 +20,6 @@ public class StrolchRestfulExceptionMapper implements ExceptionMapper<Exception>
@Override
public Response toResponse(Exception ex) {
logger.error(MessageFormat.format("Handling exception {0}", ex.getClass()), ex); //$NON-NLS-1$
return Response.status(500).entity(StringHelper.formatException(ex)).type(MediaType.TEXT_PLAIN).build();
return Response.status(500).entity(StringHelper.formatExceptionMessage(ex)).type(MediaType.TEXT_PLAIN).build();
}
}