remove panic for fmt.Fprintf (bit prettier when printing to console)

This commit is contained in:
bartfokker 2018-10-22 18:16:26 +02:00 committed by Isaev Denis
parent 13ce836c33
commit 4570c043a9

View File

@ -1,6 +1,9 @@
package main
import (
"fmt"
"os"
"github.com/golangci/golangci-lint/pkg/commands"
)
@ -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)
}
}