See the discussion on #2174. An uncaught C++ error on main causes an error like:
```
TypeError: Cannot create property 'pyodide_fatal_error' on number '28811048'
```
With this the same error looks like:
```
Pyodide has suffered a fatal error. Please report this to the Pyodide maintainers.
The cause of the fatal error was:
CppException: Unable to cast Python instance to C++ type (compile in debug mode for details)
```
Support for C++ exceptions in packages. See the discussion on #2174. An uncaught C++ error on main causes an error like:
```
TypeError: Cannot create property 'pyodide_fatal_error' on number '28811048'
```
With this the same error looks like:
```
Pyodide has suffered a fatal error. Please report this to the Pyodide maintainers.
The cause of the fatal error was:
CppException: Unable to cast Python instance to C++ type (compile in debug mode for details)
```
package:
  name: zarr
  version: 2.10.3
source:
  sha256: 76932665c2146ebdf15f6dba254f9e0030552fbfcf9322dea822bff96fbce693
  url: https://files.pythonhosted.org/packages/c4/c7/25727144c3478cac1073883c29fd2c7b89fd916cc5457bfbe1954943de76/zarr-2.10.3.tar.gz
  patches:
    - patches/fix-zarrsync.patch
requirements:
  run:
    - numpy
    - asciitree
    - numcodecs
test:
  imports:
    - zarr

package:
  name: zarr
  version: 2.10.3
source:
  sha256: 76932665c2146ebdf15f6dba254f9e0030552fbfcf9322dea822bff96fbce693
  url: https://files.pythonhosted.org/packages/c4/c7/25727144c3478cac1073883c29fd2c7b89fd916cc5457bfbe1954943de76/zarr-2.10.3.tar.gz
  patches:
    - patches/fix-zarrsync.patch
requirements:
  run:
    - numpy
    - asciitree
    - numcodecs
test:
  imports:
    - zarr
