diff options
Diffstat (limited to 'go/cmd')
-rw-r--r-- | go/cmd/gitlab-shell/main.go | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/go/cmd/gitlab-shell/main.go b/go/cmd/gitlab-shell/main.go index 9e7f2cb..07623b4 100644 --- a/go/cmd/gitlab-shell/main.go +++ b/go/cmd/gitlab-shell/main.go @@ -41,17 +41,16 @@ func main() { cmd, err := command.New(os.Args, config) if err != nil { - // Failed to build the command, fall back to ruby. // For now this could happen if `SSH_CONNECTION` is not set on // the environment - fmt.Fprintf(os.Stderr, "Failed to build command: %v\n", err) - execRuby() + fmt.Fprintf(os.Stderr, "%v\n", err) + os.Exit(1) } // The command will write to STDOUT on execution or replace the current // process in case of the `fallback.Command` if err = cmd.Execute(); err != nil { - fmt.Fprintf(os.Stderr, "%s\n", err) + fmt.Fprintf(os.Stderr, "%v\n", err) os.Exit(1) } } |