mirror of
https://github.com/clockworklabs/SpacetimeDB.git
synced 2026-05-10 09:40:23 -04:00
f2ab8be1d1
# Description of Changes This changes all types of functions to catch and process `SenderError`, which seems like something we want to do anyway, since we have examples of throwing `SenderError` in procedures. For that case, before: ``` The module instance encountered a fatal error: js error Uncaught API returned status 401 at <anonymous> (src/index.ts:36:13) ``` after: ``` The module instance encountered a fatal error: API returned status 401 ``` (it doesn't have the stack trace because a `SenderError` is more akin to an error return than an exception). Exception from procedure before: ``` The module instance encountered a fatal error: js error Uncaught TypeError: Cannot read properties of undefined (reading 'abcdef') at <anonymous> (src/index.ts:35:7) ``` After: ``` The module instance encountered a fatal error: Uncaught TypeError: Cannot read properties of undefined (reading 'abcdef') at <anonymous> (src/index.ts:35:7) ``` # Expected complexity level and risk 2 # Testing - [x] Verified that exceptions thrown
⚠️ Unstable Crate ⚠️
The interface of this crate is not stable and may change without notice.