holmgr / cargo-sweep

A cargo subcommand for cleaning up unused build files generated by Cargo
MIT License
729 stars 31 forks source link

Improve error handling #24

Closed pzmarzly closed 2 years ago

pzmarzly commented 5 years ago

Right now errors seem not to be printed correctly, and cargo-sweep exits with code 0 even on error.

$ cargo sweep --toolchains nightly-2019-13-13 # toolchain that does not exist
[INFO] Using specified installed toolchains: ["nightly-2019-13-13"]
[ERROR] Failed to clean "/project/target":
fenhl commented 2 years ago

Is there a way to see what's going wrong at all? I'm running into this issue on macOS.