aboutsummaryrefslogtreecommitdiffstats
path: root/Cargo.lock
diff options
context:
space:
mode:
authorTeddy Wing2022-03-20 23:42:00 +0100
committerTeddy Wing2022-03-20 23:42:00 +0100
commitb94637ae80ed4b6b2a725c3ff22e821233be0f33 (patch)
tree2262080a9bae11cabefc62e61ba1ddd283cf54fb /Cargo.lock
parentd12125737b9068a653124c21cfc66b67c4b7704b (diff)
downloadyaqlite-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.lock14
1 files changed, 14 insertions, 0 deletions
diff --git a/Cargo.lock b/Cargo.lock
index 30c6453..564ee75 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -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",