From dbb3163e598d925897322ae876ac28c3d660048b Mon Sep 17 00:00:00 2001 From: Amen <2668333+amenophis1er@users.noreply.github.com> Date: Sun, 27 Sep 2026 19:15:30 -0400 Subject: [PATCH] fix: logout points to Preferences > Connected applications --- cmd/logout.go | 4 ++-- cmd/logout_test.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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 {