Skip to content

Commit

Permalink
Add log for remote config errors
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Sagi-Kazar <[email protected]>
  • Loading branch information
sagikazarmark committed Sep 9, 2020
1 parent f26928c commit 387404d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions viper.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 387404d

Please sign in to comment.