Skip to content

Commit 8bb5713

Browse files
committed
update logout messsage
1 parent eb12bee commit 8bb5713

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cli/logout.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ func logout() *cobra.Command {
6767
errorString := strings.TrimRight(errorStringBuilder.String(), "\n")
6868
return xerrors.New("Failed to log out.\n" + errorString)
6969
}
70-
_, _ = fmt.Fprintf(cmd.OutOrStdout(), caret+"You are no longer logged in. Try logging in using 'coder login <url>'.\n")
70+
_, _ = fmt.Fprintf(cmd.OutOrStdout(), caret+"You are no longer logged in. You can log in using 'coder login <url>'.\n")
7171
return nil
7272
},
7373
}

cli/logout_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func TestLogout(t *testing.T) {
4141

4242
pty.ExpectMatch("Are you sure you want to logout?")
4343
pty.WriteLine("yes")
44-
pty.ExpectMatch("You are no longer logged in. Try logging in using 'coder login <url>'.")
44+
pty.ExpectMatch("You are no longer logged in. You can log in using 'coder login <url>'.")
4545
<-logoutChan
4646
})
4747
t.Run("SkipPrompt", func(t *testing.T) {
@@ -67,7 +67,7 @@ func TestLogout(t *testing.T) {
6767
assert.NoFileExists(t, string(config.Session()))
6868
}()
6969

70-
pty.ExpectMatch("You are no longer logged in. Try logging in using 'coder login <url>'.")
70+
pty.ExpectMatch("You are no longer logged in. You can log in using 'coder login <url>'.")
7171
<-logoutChan
7272
})
7373
t.Run("NoURLFile", func(t *testing.T) {

0 commit comments

Comments
 (0)