Closed
Description
@knadh i'd like to discuss the API change
almost all the provider func returns the object without error
example:
func Provider(cfg Config) *Vault {
...
}
I'm thinking of returning an error along with provider object:
func Provider(cfg Config) (*Vault, error) {
...
}
i think the original func signature support the inline the Provider instantiation within k.Load(...)
, but for Vault, S3 and other providers relies on the external system, it pretty much return nil
if something wrong in the config or network, etc.
hence a panic threw out and the app process gets exit.
it's not very friendly to diagnose the issue.
Activity