diff --git a/apps/content/docs/integrations/effect.mdx b/apps/content/docs/integrations/effect.mdx index ef7ff91c4..7a1bd2148 100644 --- a/apps/content/docs/integrations/effect.mdx +++ b/apps/content/docs/integrations/effect.mdx @@ -170,7 +170,7 @@ const procedure = os.handler(handlerGen(function* ({ errors }) { return 'Success' })) -const [error, result] = await call(procedure) +const [error, data] = await safe(call(procedure)) if (isInferableError(error)) { // typesafe error handling