lunatic-solutions / lunatic

Lunatic is an Erlang-inspired runtime for WebAssembly
https://lunatic.solutions
Apache License 2.0
4.57k stars 136 forks source link

Show registered process name in trap warning messages #187

Closed tqwewe closed 1 year ago

tqwewe commented 1 year ago

Fixes https://github.com/lunatic-solutions/lunatic/issues/124 Depends on https://github.com/lunatic-solutions/lunatic-rs/pull/100

Looks up the process name in the registry to provide better logging when a process fails. It uses the process naming conventioned mentioned in https://github.com/lunatic-solutions/lunatic-rs/pull/100.

This does not check for node_id when looking for registered process name, only process_id. Is this a problem? I wasn't sure how to get the node of the process.