Browse Source

Log argument parse errors

Fixes #1407
pull/1408/head
Fabian Reinartz 9 years ago
parent
commit
e62677d7ba
  1. 1
      cmd/prometheus/main.go

1
cmd/prometheus/main.go

@ -62,6 +62,7 @@ var (
// Main manages the startup and shutdown lifecycle of the entire Prometheus server. // Main manages the startup and shutdown lifecycle of the entire Prometheus server.
func Main() int { func Main() int {
if err := parse(os.Args[1:]); err != nil { if err := parse(os.Args[1:]); err != nil {
log.Error(err)
return 2 return 2
} }

Loading…
Cancel
Save