提交 5c748215 编写于 作者: R Rex Schrader 提交者: SaintPeter

Clarify "Unknown Shell" Error Message

In instances where the `SHELL` environment variable is not set, nor is the `-s` parameter set it is not clear what action should occur.  Clarify the error message to make it obvious.

Closes #1065

Untested.
上级 69460919
......@@ -36,7 +36,7 @@ func alias(command *Command, args *Args) {
}
if shell == "" {
utils.Check(fmt.Errorf("Unknown shell"))
utils.Check(fmt.Errorf("Error: couldn't detect shell type. Please specify your shell with 'hub alias <shell>'"))
}
shells := []string{"bash", "zsh", "sh", "ksh", "csh", "tcsh", "fish"}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册