Files
Noa f2ab8be1d1 [TS] Improve how exceptions get rendered in messages (#4347)
# 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
2026-02-19 23:06:14 +00:00
..
2023-08-01 23:16:37 +02:00
2026-02-11 15:53:30 +00:00
2025-08-12 18:20:58 +00:00

⚠️ Unstable Crate ⚠️

The interface of this crate is not stable and may change without notice.