rust-secure-code / cargo-supply-chain

Gather author, contributor and publisher data on crates in your dependency graph.
Apache License 2.0
315 stars 18 forks source link

Don't panic if the current directory is not a cargo project #23

Closed jyn514 closed 3 years ago

jyn514 commented 3 years ago
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: CargoMetadata { stderr: "error: could not find `Cargo.toml` in `/home/joshua` or any parent directory\n" }', /home/joshua/.local/lib/cargo/registry/src/github.com-1ecc6299db9ec823/cargo-supply-chain-0.0.2/src/common.rs:28:10
Shnatsel commented 3 years ago

Yeah, we should show a helpful message instead.