You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[EH] Remove 'terminating' from exception message (#17058)
#17003 added "terminating" to exception messages, but some people might
want to use the message in non-terminating cases. This changes
`emscripten_format_exception` to `__get_exception_message`, and
separately adds `__get_terminating_exception_message`. Adds two
underscores not to clash with the global namespace.
`__get_exception_message` prints messages like
```
exception of type char
exception of type std::runtime_error: abc
exception of type myexception: My exception happened
```
`__get_terminating_exception_message` prints messages like
```
terminating with uncaught exception of type char
terminating with uncaught exception of type std::runtime_error: abc
terminating with uncaught exception of type myexception: My exception happened
```
0 commit comments