feature_23113 #4
|
@ -59,7 +59,8 @@ 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
|
||||
String error = "Error occurred on getting legacy token. Please, contact the support!";
|
||||
|
@ -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