Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cmd/logout.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ Example:
fmt.Printf("✓ Logged out from %q\n", name)
var refused *auth.RevokeRefusedError
if errors.As(revokeErr, &refused) {
fmt.Printf(" The instance did not accept the revocation (HTTP %d); revoke the access in its Studio under Account > Connected applications.\n", refused.Status)
fmt.Printf(" The instance did not accept the revocation (HTTP %d); revoke the access in its Studio under Preferences > Connected applications (the menu under your name).\n", refused.Status)
} else if revokeErr != nil {
fmt.Println(" The instance could not be reached to revoke the sign-in; revoke it in its Studio under Account > Connected applications.")
fmt.Println(" The instance could not be reached to revoke the sign-in; revoke it in its Studio under Preferences > Connected applications (the menu under your name).")
}
return nil
},
Expand Down
4 changes: 2 additions & 2 deletions cmd/logout_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func TestLogout_ForgetsAnUnreachableOrRefusingInstanceAndSaysWhy(t *testing.T) {
if err != nil {
t.Fatal(err)
}
if !strings.Contains(out, "could not be reached") {
if !strings.Contains(out, "Preferences > Connected applications") || !strings.Contains(out, "could not be reached") {
t.Fatalf("output %q", out)
}
if inst, _ := config.GetInstance("gone"); inst != nil {
Expand All @@ -76,7 +76,7 @@ func TestLogout_ForgetsAnUnreachableOrRefusingInstanceAndSaysWhy(t *testing.T) {
if err != nil {
t.Fatal(err)
}
if !strings.Contains(out, "did not accept the revocation (HTTP 404)") {
if !strings.Contains(out, "Preferences > Connected applications") || !strings.Contains(out, "did not accept the revocation (HTTP 404)") {
t.Fatalf("output %q", out)
}
if inst, _ := config.GetInstance("old"); inst != nil {
Expand Down
Loading