Skip to content

Commit faa96be

Browse files
committed
Ensure that errors are printed to stderr
1 parent a6e61a3 commit faa96be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
func main() {
1111
if err := command.RootCmd.Execute(); err != nil {
1212
if err != command.SilentErr {
13-
fmt.Println(err)
13+
fmt.Fprintln(os.Stderr, err)
1414
}
1515
os.Exit(1)
1616
}

0 commit comments

Comments
 (0)