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
returnfmt.Sprintf("\n"+`🛠 To fix: Create an access token by going to %s/user/settings/tokens, then set the following environment variables in your terminal:
fmt.Fprintln(out, " (If you need to supply custom HTTP request headers, see information about SRC_HEADER_* and SRC_HEADERS env vars at https://github.com/sourcegraph/src-cli/blob/main/AUTH_PROXY.md)")
39
45
returncmderrors.ExitCode1
40
46
}
41
47
42
48
ifresult.CurrentUser==nil {
43
49
// This should never happen; we verified there is an access token, so there should always be
44
50
// a user.
45
-
printLoginProblem(out, fmt.Sprintf("Unable to determine user on %s.", endpoint))
51
+
printLoginProblem(out, fmt.Sprintf("Unable to determine user on %s.", endpointURL))
46
52
returncmderrors.ExitCode1
47
53
}
48
54
fmt.Fprintln(out)
49
-
fmt.Fprintf(out, "✔︎ Authenticated as %s on %s\n", result.CurrentUser.Username, endpoint)
55
+
fmt.Fprintf(out, "✔︎ Authenticated as %s on %s\n", result.CurrentUser.Username, endpointURL)
0 commit comments