Refactor error handling #308
2
main.go
2
main.go
|
@ -45,7 +45,7 @@ func main() {
|
|||
if err != nil {
|
||||
// app.Run already exits for errors implementing ErrorCoder,
|
||||
// so we only handle generic errors with code 1 here.
|
||||
fmt.Printf("Error: %v\n", err)
|
||||
fmt.Fprintf(app.ErrWriter, "Error: %v\n", err)
|
||||
noerw marked this conversation as resolved
Outdated
|
||||
os.Exit(1) //
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user
One nit: can you print to stderr ?