ソースを参照

Make "already auth'd" error more helpful

pull/21/head
Matt Baer 5年前
コミット
be18239017
1個のファイルの変更1行の追加1行の削除
  1. +1
    -1
      cmd/writeas/commands.go

+ 1
- 1
cmd/writeas/commands.go ファイルの表示

@@ -210,7 +210,7 @@ func cmdAuth(c *cli.Context) error {
return cli.NewExitError(fmt.Sprintf("couldn't load config: %v", err), 1)
}
if u != nil && u.AccessToken != "" {
return cli.NewExitError("You're already authenticated.", 1)
return cli.NewExitError("You're already authenticated as "+u.User.Username+". Log out with: writeas logout", 1)
}

// Validate arguments and get password


読み込み中…
キャンセル
保存