From fb9c58f0e20a85a5358142ddb39a2f74d3bbe69b Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 23 May 2014 11:03:38 -0700 Subject: [PATCH] config: better error message --- config/loader.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/config/loader.go b/config/loader.go index 5b1e929bc..c4e68e97d 100644 --- a/config/loader.go +++ b/config/loader.go @@ -19,7 +19,10 @@ func Load(path string) (*Config, error) { // Parse the libucl file into the raw format if err := parseFile(path, &rawConfig); err != nil { - return nil, err + return nil, fmt.Errorf( + "Error loading %s: %s", + path, + err) } // Make sure we close the raw object