summaryrefslogtreecommitdiffstats
path: root/src/error.rs
diff options
context:
space:
mode:
authorToby Vincent <tobyv13@gmail.com>2022-11-01 13:00:07 -0500
committerToby Vincent <tobyv13@gmail.com>2022-11-01 13:02:02 -0500
commit698d811059ebb6787305e8293a77837323fc9311 (patch)
tree218818bf54373848d49ec3e888e9d8c51bace845 /src/error.rs
parent61e7c46e5b805c2fda1b4724fb8389a187c75987 (diff)
feat: impl cli, config, and logging
via clap, figment, and tracing, respectively
Diffstat (limited to 'src/error.rs')
-rw-r--r--src/error.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/error.rs b/src/error.rs
new file mode 100644
index 0000000..e423493
--- /dev/null
+++ b/src/error.rs
@@ -0,0 +1,10 @@
+pub type Result<T> = std::result::Result<T, Error>;
+
+#[derive(thiserror::Error, Debug)]
+pub enum Error {
+ #[error("IO error: {0:?}")]
+ IO(#[from] std::io::Error),
+
+ #[error("Config error: {0:?}")]
+ Config(#[from] figment::error::Error),
+}