Skip to content

Commit a039eea

Browse files
committed
error messages should go to stderr
1 parent e1641d0 commit a039eea

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cmd/alertmanager/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ func getApp(ctx context.Context) (*amstate.App, error) {
6868

6969
func exitIfError(err error) {
7070
if err != nil {
71-
fmt.Println(err)
71+
fmt.Fprintln(os.Stderr, err)
7272
os.Exit(1)
7373
}
7474
}

0 commit comments

Comments
 (0)