CB-3322 save all auth errors (#1769)

Co-authored-by: mr-anton-t <42037741+mr-anton-t@users.noreply.github.com>
This commit is contained in:
Alexander Skoblikov
2023-06-21 21:07:05 +03:00
committed by GitHub
co-authored by mr-anton-t
parent 377f6d4344
commit f4a471a8e4
@@ -66,7 +66,9 @@ public class WebSessionAuthProcessor {
case SUCCESS:
return finishWebSessionAuthorization(smAuthInfo);
case ERROR:
throw new DBException(smAuthInfo.getError());
var e = new DBException(smAuthInfo.getError());
webSession.addSessionError(e);
throw e;
case IN_PROGRESS:
throw new DBException("Authorization didn't complete");
default: