o1-labs / zkapp-cli

CLI to create a zkApp (zero-knowledge app) for Mina Protocol
https://docs.minaprotocol.com/zkapps/how-to-write-a-zkapp
Apache License 2.0
115 stars 44 forks source link

[Lightnet] Better errors handling #544

Closed shimkiv closed 8 months ago

shimkiv commented 10 months ago

Even though we have the --debug option to print the underlying commands execution stdout/stderr, it will be much better to explain what went wrong to the end used upon their first failure to not ask them repeat such commands again. Alongside with the error message we also need to print the underlying commands used. For example, if zk lightnet start fails it will be good to see the exact docker run command in use as well as the actual failure reason (resources issues, ports already in use, etc.).

shimkiv commented 8 months ago

Detect ports unavailability and notify users accordingly. Or make it run on any random ports available.

shimkiv commented 8 months ago

Detect resources issues (not enough RAM, CPU, Disk Space).