From 6862dc060b37c895e6e80b3c56d445b90de2ccc4 Mon Sep 17 00:00:00 2001 From: monosans Date: Tue, 5 Aug 2025 11:38:16 +0300 Subject: [PATCH] fix: improve error message for loading configuration --- src/config.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/config.rs b/src/config.rs index bb7b369..9a0895e 100644 --- a/src/config.rs +++ b/src/config.rs @@ -200,7 +200,9 @@ pub async fn load_config() -> color_eyre::Result> { let raw_config_path = raw_config::get_config_path(); let raw_config = raw_config::read_config(Path::new(&raw_config_path)) .await - .wrap_err_with(move || format!("failed to read {raw_config_path}"))?; + .wrap_err_with(move || { + format!("failed to load config from {raw_config_path}") + })?; let config = Config::from_raw_config(raw_config) .await