diff options
Diffstat (limited to 'android/config.go')
-rw-r--r-- | android/config.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/android/config.go b/android/config.go index 1a0b45a5..b158e051 100644 --- a/android/config.go +++ b/android/config.go @@ -132,12 +132,14 @@ func loadFromConfigFile(configurable jsonConfigurable, filename string) error { if err != nil { return err } + } else if err != nil { + return fmt.Errorf("config file: could not open %s: %s", filename, err.Error()) } else { // Make a decoder for it jsonDecoder := json.NewDecoder(configFileReader) err = jsonDecoder.Decode(configurable) if err != nil { - return fmt.Errorf("config file: %s did not parse correctly: "+err.Error(), filename) + return fmt.Errorf("config file: %s did not parse correctly: %s", filename, err.Error()) } } |