updated comment
This commit is contained in:
parent
31d1828cb3
commit
3940c65249
|
@ -59,6 +59,7 @@ public class OatResolver {
|
|||
LOG.info("returning legacy token {} for user {}", msgToken, username);
|
||||
return Response.ok(userToken).build();
|
||||
} catch (Exception e) {
|
||||
LOG.error("Exception:", e);
|
||||
|
||||
if (!(e instanceof WebApplicationException)) {
|
||||
// UNEXPECTED EXCEPTION managing it as WebApplicationException
|
||||
|
@ -68,7 +69,6 @@ public class OatResolver {
|
|||
throw ExceptionManager.internalErrorException(req, error, this.getClass(), null);
|
||||
}
|
||||
// ALREADY MANAGED AS WebApplicationException
|
||||
LOG.error("Exception:", e);
|
||||
throw (WebApplicationException) e;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue