config: better error message

This commit is contained in:
Mitchell Hashimoto 2014-05-23 11:03:38 -07:00
parent 089822a36f
commit fb9c58f0e2
1 changed files with 4 additions and 1 deletions

View File

@ -19,7 +19,10 @@ func Load(path string) (*Config, error) {
// Parse the libucl file into the raw format // Parse the libucl file into the raw format
if err := parseFile(path, &rawConfig); err != nil { 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 // Make sure we close the raw object