From 5c7482159369b85cab75d804f67bd6a5144b2199 Mon Sep 17 00:00:00 2001 From: Rex Schrader Date: Tue, 19 Jan 2016 14:33:22 -0800 Subject: [PATCH] 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. --- commands/alias.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/alias.go b/commands/alias.go index ebe05812..6ba2b94f 100644 --- a/commands/alias.go +++ b/commands/alias.go @@ -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 '")) } shells := []string{"bash", "zsh", "sh", "ksh", "csh", "tcsh", "fish"} -- GitLab