Skip to content

Commit a46d5b5

Browse files
author
Shlomi Noach
authored
Merge pull request #494 from github/cfg-read-error
Clearer error message on config file read error
2 parents 3fc3446 + 6362dbe commit a46d5b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

go/base/context.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,7 @@ func (this *MigrationContext) ReadConfigFile() error {
700700
gcfg.RelaxedParserMode = true
701701
gcfgscanner.RelaxedScannerMode = true
702702
if err := gcfg.ReadFileInto(&this.config, this.ConfigFile); err != nil {
703-
return err
703+
return fmt.Errorf("Error reading config file %s. Details: %s", this.ConfigFile, err.Error())
704704
}
705705

706706
// We accept user & password in the form "${SOME_ENV_VARIABLE}" in which case we pull

0 commit comments

Comments
 (0)