Skip to content

Commit

Permalink
remove panic for fmt.Fprintf (bit prettier when printing to console)
Browse files Browse the repository at this point in the history
  • Loading branch information
barthr authored and jirfag committed Oct 23, 2018
1 parent 13ce836 commit 4570c04
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cmd/golangci-lint/main.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
package main

import (
"fmt"
"os"

"github.com/golangci/golangci-lint/pkg/commands"
)

Expand All @@ -13,7 +16,9 @@ var (

func main() {
e := commands.NewExecutor(version, commit, date)

if err := e.Execute(); err != nil {
panic(err)
fmt.Fprintf(os.Stderr, "failed executing command with error %v\n", err)
os.Exit(1)
}
}

0 comments on commit 4570c04

Please sign in to comment.