Skip to content

Error codes returned in middleware are not inferred by Eden Treaty #201

@danielyogel

Description

@danielyogel

What version of Elysia is running?

1.3.2

What platform is your computer?

Darwin 24.5.0 arm64 arm

What steps can reproduce the bug?

  1. create any middleware that returns an error code using the status function.
  2. use it before any handler.
  3. Init Eden Treaty.
  4. switch case on the error returned, and verify if the error code from step 1 - is there.

What is the expected behavior?

Infer errors status codes returned in middleware and similar functions.

What do you see instead?

Only status codes inferred from the handler itself.

Additional information

No response

Have you try removing the node_modules and bun.lockb and try again yet?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions