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
I am exploring using the Sailpoint Go SDK and discovered that sailpoint.NewDefaultConfiguration() panics if it can't find a configuration. I would prefer it to return an error instead of calling panic, so that higher level application logic can recognize the problem and report it appropriately to the user.
panic(fmt.Errorf("unable to find any config file"))
The text was updated successfully, but these errors were encountered:
aogail
changed the title
NewDefaultConfiguration() should return an error instead of panicing
NewDefaultConfiguration() should return an error instead of calling panic()
Sep 3, 2024
I am exploring using the Sailpoint Go SDK and discovered that
sailpoint.NewDefaultConfiguration()
panics if it can't find a configuration. I would prefer it to return an error instead of calling panic, so that higher level application logic can recognize the problem and report it appropriately to the user.See
golang-sdk/configuration.go
Line 194 in 976088a
The text was updated successfully, but these errors were encountered: