зеркало из https://github.com/mozilla/mig.git
Merge pull request #366 from stephenma064/patch-1
Fix client.go to throw real error when configuration file is incorrect format
This commit is contained in:
Коммит
bf45a6e56f
|
@ -175,6 +175,9 @@ func ReadConfiguration(file string) (conf Configuration, err error) {
|
|||
}
|
||||
}
|
||||
err = gcfg.ReadFileInto(&conf, file)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
// If standard PGP based authentication is being used, validate these settings
|
||||
// from the configuration file
|
||||
if conf.GPG.UseAPIKeyAuth == "" {
|
||||
|
|
Загрузка…
Ссылка в новой задаче