From 9eed745dab80cf75201eff347b1ecea74e24dd30 Mon Sep 17 00:00:00 2001 From: Steven Masley Date: Thu, 20 Jun 2024 15:09:01 -0500 Subject: [PATCH] chore: add help to error to reset organization context --- cli/root.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/root.go b/cli/root.go index 2c7443cde5749..073486c640744 100644 --- a/cli/root.go +++ b/cli/root.go @@ -657,7 +657,7 @@ func CurrentOrganization(r *RootCmd, inv *serpent.Invocation, client *codersdk.C }) if index < 0 { - return codersdk.Organization{}, xerrors.Errorf("organization %q not found, are you sure you are a member of this organization?", selected) + return codersdk.Organization{}, xerrors.Errorf("organization %q not found, are you sure you are a member of this organization? If unsure, run 'coder organizations set \"\" ' to reset your current context.", selected) } return orgs[index], nil }