diff --git a/provider/resource_keycloak_openid_client_default_scopes.go b/provider/resource_keycloak_openid_client_default_scopes.go index befa4a2f6..c851c4daa 100644 --- a/provider/resource_keycloak_openid_client_default_scopes.go +++ b/provider/resource_keycloak_openid_client_default_scopes.go @@ -61,7 +61,7 @@ func resourceKeycloakOpenidClientDefaultScopesRead(data *schema.ResourceData, me clientScopes, err := keycloakClient.GetOpenidClientDefaultScopes(realmId, clientId) if err != nil { - return err + return handleNotFoundError(err, data) } var defaultScopes []string