From e62677d7ba17bf8c496aeec39cbd8ed4b10057c7 Mon Sep 17 00:00:00 2001 From: Fabian Reinartz Date: Fri, 19 Feb 2016 12:18:19 +0100 Subject: [PATCH] Log argument parse errors Fixes #1407 --- cmd/prometheus/main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/prometheus/main.go b/cmd/prometheus/main.go index 4aaa36382..6c630ee98 100644 --- a/cmd/prometheus/main.go +++ b/cmd/prometheus/main.go @@ -62,6 +62,7 @@ var ( // Main manages the startup and shutdown lifecycle of the entire Prometheus server. func Main() int { if err := parse(os.Args[1:]); err != nil { + log.Error(err) return 2 }