summaryrefslogtreecommitdiffstats
path: root/src/error.rs
diff options
context:
space:
mode:
authorToby Vincent <tobyv@tobyvin.dev>2024-04-02 17:23:05 -0500
committerToby Vincent <tobyv@tobyvin.dev>2024-04-02 17:32:38 -0500
commitd3a09372b5b945a609cce5e28c4d4233e3b134e8 (patch)
tree9f888aa393948e1c90d76d37349ffe9738b95f24 /src/error.rs
parentb263c6637ce8b7c83e4d01d1ef2e90e195a155fb (diff)
feat: impl toml file and env config layering
Diffstat (limited to 'src/error.rs')
-rw-r--r--src/error.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/error.rs b/src/error.rs
index 2824e49..48360de 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -8,8 +8,11 @@ pub enum Error {
#[error("IO error: {0}")]
IO(#[from] std::io::Error),
- #[error("Env variable error: {0}")]
- Env(#[from] dotenvy::Error),
+ #[error("Config file error: {0}")]
+ Toml(#[from] toml::de::Error),
+
+ #[error("Config error: {0}")]
+ Config(String),
#[error("Axum error: {0}")]
Axum(#[from] axum::Error),