Skip to content

Commit

Permalink
Emit wrapped error
Browse files Browse the repository at this point in the history
  • Loading branch information
nakabonne committed May 29, 2020
1 parent acabdcb commit c501112
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,15 @@ func (c *cli) run() int {
logger := logger.NewLogger(conf, nil)
runner, err := golangcilint.NewRunner(conf.Executable, []string{}, logger)
if err != nil {
fmt.Fprintln(c.stderr, err.Error())
fmt.Fprintf(c.stderr, "failed to run golangci-lint: %s", err.Error())
return 1
}
gitrunner := git.NewRunner("", logger)
editor := editor.NewEditor(conf.OpenCommandEnv, logger)

g := gui.New(logger, runner, gitrunner, editor)
if err := g.Run(); err != nil {
fmt.Fprintln(c.stderr, err.Error())
fmt.Fprintf(c.stderr, "failed to start application: %s", err.Error())
return 1
}

Expand Down

0 comments on commit c501112

Please sign in to comment.