Effect CommunityEC
Effect Community3y ago
36 replies
gdc

CatchTag not removing errors type

Hey guys, when using Effect.catchTag, the return type isn't removing the OrderNotFoundError. It may be because i'm missteping something, but by the docs i couldn't figure it out.

// HANDLE_ORDER_NOT_FOUND

export const HANDLE_ORDER_NOT_FOUND = (
  _OrderNotFoundError: OrderNotFoundError,
) => {
  return Effect.die('Just a little test');
};



Also, you guys should create "errors" or something) as tag.
image.png
Was this page helpful?