remove panic for fmt.Fprintf (bit prettier when printing to console)
This commit is contained in:
parent
13ce836c33
commit
4570c043a9
@ -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)
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user