CB-3483 return original error text if authentication failed (#1688)

This commit is contained in:
Alexander Skoblikov
2023-05-23 14:09:07 +03:00
committed by GitHub
parent c45e8d8933
commit 86302cfdde
@@ -66,7 +66,7 @@ public class WebSessionAuthProcessor {
case SUCCESS:
return finishWebSessionAuthorization(smAuthInfo);
case ERROR:
throw new DBException("Authentication failed: " + smAuthInfo.getError());
throw new DBException(smAuthInfo.getError());
case IN_PROGRESS:
throw new DBException("Authorization didn't complete");
default: