Merge pull request #1408 from prometheus/hostname

Log argument parse errors
This commit is contained in:
Fabian Reinartz 2016-02-19 12:22:12 +01:00
commit fce17b41c5

View file

@ -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
} }