You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -392,10 +391,47 @@ export async function checkConnection(
392
391
message="Not Authorized.";
393
392
errorMessage=`Authorization error: Check your credentials in Settings, and that you have sufficient privileges on the /api/atelier web application on ${connInfo}`;
394
393
constusername=api.config.username;
395
-
if(username===""){
396
-
vscode.window.showErrorMessage(`Anonymous access rejected by ${connInfo}.`);
397
-
if(!api.externalServer){
398
-
vscode.window.showErrorMessage("Connection has been disabled.");
394
+
if(isUnauthenticated(username)){
395
+
vscode.window.showErrorMessage(
396
+
`Unauthenticated access rejected by '${api.serverId}'.${
397
+
!api.externalServer ? " Connection has been disabled." : ""
0 commit comments