You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a call to config.GetConfigOrDie() in resource.go:123. This attempts to load the config, but if unsuccessful will call an os.Exit(1) from inside resourse.go.
From a user experience perspective it may be better to leverage config.GetConfig() and handle the err != nil by returning an empty ResourceProvider and an error message. Where this function is invoked, already has error handling which would capture a more usable message to the user instead of calling an os.Exit(1).
The text was updated successfully, but these errors were encountered:
There is a call to
config.GetConfigOrDie()
in resource.go:123. This attempts to load the config, but if unsuccessful will call anos.Exit(1)
from insideresourse.go
.From a user experience perspective it may be better to leverage
config.GetConfig()
and handle theerr != nil
by returning an emptyResourceProvider
and an error message. Where this function is invoked, already has error handling which would capture a more usable message to the user instead of calling anos.Exit(1)
.The text was updated successfully, but these errors were encountered: