chore: add help to error to reset organization context (#13616)

This commit is contained in:
Steven Masley
2024-06-20 11:44:47 -10:00
committed by GitHub
parent 495eea452f
commit c4656d77cc

View File

@ -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
}