I was coming across an issue when trying to run my wasm module where I got an error:
cargo run --example spawn_macro
Running lunatic run target/wasm32-wasi/debug/app.wasm
Error: No such file or directory (os error 2)
This led me to believe that my program was trying to open a file and it was not able to find it. But in reality the issue is a confusion around the new lunatic run command, and I was using an older version where lunatic was trying to run a module called run.
For this reason, it might be better to add a better error message when the lunatic run command cannot find the wasm module.
For example:
lunatic run foo.wasm
Error: Module 'run' does not exist
For comparison, when you try to run an elixir file that doesn't exist, elixir outputs this:
I was coming across an issue when trying to run my wasm module where I got an error:
This led me to believe that my program was trying to open a file and it was not able to find it. But in reality the issue is a confusion around the new
lunatic run
command, and I was using an older version where lunatic was trying to run a module calledrun
.For this reason, it might be better to add a better error message when the lunatic run command cannot find the wasm module. For example:
For comparison, when you try to run an elixir file that doesn't exist, elixir outputs this: