Commit bb9cd9ac authored by Piotr Gawron's avatar Piotr Gawron
Browse files

InvalidArgumentException shold rresult in 500

parent 1c4e1dc8
......@@ -41,8 +41,7 @@ public abstract class BaseController {
} else if (e instanceof QueryException
|| e instanceof HttpMessageNotReadableException
|| e instanceof MissingServletRequestParameterException
|| e instanceof HttpMediaTypeNotSupportedException
|| e instanceof IllegalArgumentException) {
|| e instanceof HttpMediaTypeNotSupportedException) {
logger.error(e, e);
return createErrorResponse("Query server error.", e.getMessage(), new HttpHeaders(), HttpStatus.BAD_REQUEST);
} else if (e instanceof ServletRequestBindingException && e.getMessage().contains(Configuration.AUTH_TOKEN)) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment