Skip to content
Commit Detail

Commit df79103

Author
Anna Kapuscinska <akapuscinska@cloudflare.com> 2026-03-26 23:53:12 +0000
Parents
98fd6db
Tree
89495cd
Reclassify entrypoint-not-found errors as JSG errors for dynamic dispatch

When isDynamicDispatch is true (entrypoint name supplied at request time),
two errors in getExportedHandler() are reclassified as JSG TypeErrors so
they surface to the caller rather than being logged as internal errors.
This will inform users about their likely misconfiguration:

- A DO class name requested via the non-actor dispatch path
- A non-existent entrypoint name

For static dispatch (isDynamicDispatch false) both cases retain their
existing LOG_ERROR_PERIODICALLY behaviour, since they can reflect genuine
bugs or infrastructure failures.

Files changed

3 files changed+1 added~2 modified