fix(cli): improve error message for upgrade-all

closes #5885
This commit is contained in:
bergquist
2016-08-30 13:47:42 +02:00
parent b55b7cde4b
commit 645293e590
2 changed files with 11 additions and 3 deletions

View File

@@ -14,7 +14,7 @@ func runCommand(command func(commandLine CommandLine) error) func(context *cli.C
cmd := &contextCommandLine{context}
if err := command(cmd); err != nil {
logger.Errorf("\n%s: ", color.RedString("Error"))
logger.Errorf("%s\n\n", err)
logger.Errorf("%s %s\n\n", color.RedString("✗"), err)
cmd.ShowHelp()
os.Exit(1)