feat(cli): improve error handling for missing plugin dir

This commit is contained in:
bergquist
2016-03-11 14:11:25 +01:00
parent 8da702c2e7
commit f5bb2b11e5
2 changed files with 10 additions and 1 deletions

View File

@ -11,6 +11,7 @@ func runCommand(command func(commandLine CommandLine) error) func(context *cli.C
cmd := &contextCommandLine{context}
if err := command(cmd); err != nil {
log.Error("\nError: ")
log.Errorf("%s\n\n", err)
cmd.ShowHelp()