Skip to content

Commit

Permalink
informant: Use Fatalf on server error
Browse files Browse the repository at this point in the history
Per review comment. It's a relatively clean way to return a non-zero
exit code.
  • Loading branch information
sharnoff committed Jan 11, 2023
1 parent d46fcd4 commit 18f2c52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/vm-informant/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ func main() {
if err == http.ErrServerClosed {
klog.Infof("Server ended.")
} else {
klog.Errorf("Server failed: %s", err)
klog.Fatalf("Server failed: %s", err)
}
}

0 comments on commit 18f2c52

Please sign in to comment.