We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a80434 commit 0c75216Copy full SHA for 0c75216
src/commands.ts
@@ -58,10 +58,6 @@ export class Commands {
58
return undefined
59
})
60
.catch((err) => {
61
- let message = err
62
- if (axios.isAxiosError(err) && err.response?.data) {
63
- message = err.response.data.detail
64
- }
65
if (err instanceof CertificateError) {
66
err.showNotification()
67
@@ -72,6 +68,8 @@ export class Commands {
72
68
}
73
69
// This could be something like the header command erroring or an
74
70
// invalid session token.
71
+ const message =
+ err?.response?.data?.detail || err?.message || err?.response?.status || "no response from the server"
75
return {
76
message: "Failed to authenticate: " + message,
77
severity: vscode.InputBoxValidationSeverity.Error,
0 commit comments