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 2b19d4b commit 2537e7b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
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 2537e7b

Please sign in to comment.