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
But there are cases where service == nil and service.Id == nil which this doesn't handle which means it passes the client code error handling and they have to do this
service, err := client.GetService(serviceIdentifier)
if err != nil || service == nil || service.Id == nil {
resp.Diagnostics.AddError("opslevel client error", fmt.Sprintf("Unable to read service, got error: %s", err))
return
}
We should fix this by adding a custom "Resource Not Found" error that we emit when service == nil || service.Id == nil but it should be done in the client.GetService function.
Then wash, rinse, repeat for all "get" functions in the opslevel-go client.
The text was updated successfully, but these errors were encountered:
Customer calling code looks like this
But there are cases where
service == nil
andservice.Id == nil
which this doesn't handle which means it passes the client code error handling and they have to do thisWe should fix this by adding a custom "Resource Not Found" error that we emit when
service == nil || service.Id == nil
but it should be done in theclient.GetService
function.Then wash, rinse, repeat for all "get" functions in the opslevel-go client.
The text was updated successfully, but these errors were encountered: