Chia-Network / chia-blockchain

Chia blockchain python implementation (full node, farmer, harvester, timelord, and wallet)
Apache License 2.0
10.82k stars 2.02k forks source link

Plotters: Improve visibility of runtime error messages from bladebit/madmax when invoked by `chia plotters` #13611

Closed paninaro closed 2 years ago

paninaro commented 2 years ago

When querying which plotters are installed and which versions, if the plotter crashes when run with --version, we don't see the underlying issue. Instead, we just see that the plotter exited with a non-zero status code. We should improve the visibility of the error messages from the plotter so that the user has a clue of what the issue is (missing library dependency).

ChiaMineJP commented 2 years ago

I've create a PR https://github.com/Chia-Network/chia-blockchain/pull/13704

How to test

Sample output

(venv) PS C:\Users\User1\...\chia-blockchain> chia plotters version
Failed to determine bladebit version: thread 'main' panicked at 'test', bladebit.rs:2:3
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
chiapos: 1.0.11
ChiaMineJP commented 2 years ago

The PR was merged.