Add log for remote config errors

Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
This commit is contained in:
Mark Sagi-Kazar 2020-09-09 22:35:18 +02:00 committed by Márk Sági-Kazár
parent f26928cd87
commit 387404d518
1 changed files with 4 additions and 0 deletions

View File

@ -1759,9 +1759,13 @@ func (v *Viper) getKeyValueConfig() error {
for _, rp := range v.remoteProviders {
val, err := v.getRemoteConfig(rp)
if err != nil {
jww.ERROR.Printf("get remote config: %s", err)
continue
}
v.kvstore = val
return nil
}
return RemoteConfigError("No Files Found")