diff --git a/cmd/logout.go b/cmd/logout.go index fe3b46b..9b082b9 100644 --- a/cmd/logout.go +++ b/cmd/logout.go @@ -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 }, diff --git a/cmd/logout_test.go b/cmd/logout_test.go index a2105d8..c4818c1 100644 --- a/cmd/logout_test.go +++ b/cmd/logout_test.go @@ -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 { @@ -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 {