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: imageio
  version: 2.14.0
source:
  sha256: af6c7c89947ee9d81eab2caee3726f61e1a0d861e87e856904868d0fe7c0aa15
  url: https://files.pythonhosted.org/packages/88/1e/62f8088805f7eb9cc9ce2b8ae7528a4083014f223c4e55d268dc48ac06c6/imageio-2.14.0-py3-none-any.whl
requirements:
  run:
    - numpy
    - pillow
test:
  imports:
    - imageio

package:
  name: imageio
  version: 2.14.0
source:
  sha256: af6c7c89947ee9d81eab2caee3726f61e1a0d861e87e856904868d0fe7c0aa15
  url: https://files.pythonhosted.org/packages/88/1e/62f8088805f7eb9cc9ce2b8ae7528a4083014f223c4e55d268dc48ac06c6/imageio-2.14.0-py3-none-any.whl
requirements:
  run:
    - numpy
    - pillow
test:
  imports:
    - imageio
