Skip to content
Commit Detail

Commit e899a92

Author
Somhairle MacLeòid <smacleod@cloudflare.com> 2026-04-14 14:18:16 +0100
Parents
271477b
Tree
2488645
Tunnel debug port RPC errors to callers (#6507)

The debug port's getEntrypoint() and getActor() methods used plain
KJ_ASSERT_NONNULL for error cases (service not found, entrypoint not
found, DO class not found). KJ exceptions without a jsg. prefix get
sanitized by decodeTunneledException() into a generic
"internal error; reference = <id>" before reaching the caller.

Prefix these assertion messages with "jsg.Error:" so they tunnel
through capnp RPC and the caller receives the actual error description
(e.g. "Entrypoint not found: NonExistentEntrypoint").

Files changed

2 files changed~2 modified