updated comment

feature_23113
Francesco Mangiacrapa 2 years ago
parent 31d1828cb3
commit 3940c65249

@ -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…
Cancel
Save