Skip to content

Commit

Permalink
WELD-2762 Do not swallow exceptions occuring during HTTP session crea…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
manovotn committed Oct 18, 2023
1 parent cb0b1f7 commit 24b0d49
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -85,10 +85,10 @@ protected HttpSession getSession(boolean create) {
try {
return SessionHolder.getSession(request, create);
} catch (IllegalStateException e) {
// If container can't create an underlying session, invalidate the
// current one
// If container can't create an underlying session, invalidate the current one
detach();
return null;
// re-throw the exception to properly show cause and message
throw e;
}
}

Expand Down

0 comments on commit 24b0d49

Please sign in to comment.