Commit Detail
Commit e899a92
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