diff options
author | Teddy Wing | 2022-03-20 23:42:00 +0100 |
---|---|---|
committer | Teddy Wing | 2022-03-20 23:42:00 +0100 |
commit | b94637ae80ed4b6b2a725c3ff22e821233be0f33 (patch) | |
tree | 2262080a9bae11cabefc62e61ba1ddd283cf54fb /Cargo.lock | |
parent | d12125737b9068a653124c21cfc66b67c4b7704b (diff) | |
download | yaqlite-b94637ae80ed4b6b2a725c3ff22e821233be0f33.tar.bz2 |
main: Print errors to standard error instead of panicking with `unwrap`
Use `anyhow` to add context to errors and a `main()` wrapper that prints
error messages and their context to standard error.
Diffstat (limited to 'Cargo.lock')
-rw-r--r-- | Cargo.lock | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -14,6 +14,12 @@ dependencies = [ ] [[package]] +name = "anyhow" +version = "1.0.56" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4361135be9122e0870de935d7c439aef945b9f9ddd4199a553b5270b49c82a27" + +[[package]] name = "autocfg" version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" @@ -60,6 +66,12 @@ dependencies = [ ] [[package]] +name = "exitcode" +version = "1.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "de853764b47027c2e862a995c34978ffa63c1501f2e15f987ba11bd4f9bba193" + +[[package]] name = "fallible-iterator" version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" @@ -314,7 +326,9 @@ dependencies = [ name = "yaqlite" version = "0.0.1" dependencies = [ + "anyhow", "clap", + "exitcode", "rusqlite", "thiserror", "yaml-rust-davvid", |