summaryrefslogtreecommitdiffstats
path: root/zellij-utils
diff options
context:
space:
mode:
authorKangaxx-0 <85712372+Kangaxx-0@users.noreply.github.com>2023-05-15 07:56:03 -0700
committerGitHub <noreply@github.com>2023-05-15 23:56:03 +0900
commita2450b0d910596d265ff09c47cb878dbbba1478a (patch)
treeb112dd6a7cc41a92e61637977e39d2cd527455fa /zellij-utils
parent30d0cffa4294b27da88253b5fb24b40044310338 (diff)
Fix issue 2421 - Update config file output (#2443)
* Update config file output * add more information in config error
Diffstat (limited to 'zellij-utils')
-rw-r--r--zellij-utils/src/setup.rs15
1 files changed, 12 insertions, 3 deletions
diff --git a/zellij-utils/src/setup.rs b/zellij-utils/src/setup.rs
index 9127f70ec..1062b233d 100644
--- a/zellij-utils/src/setup.rs
+++ b/zellij-utils/src/setup.rs
@@ -444,11 +444,20 @@ impl Setup {
}
}
if let Some(config_file) = config_file {
- writeln!(&mut message, "[CONFIG FILE]: {:?}", config_file).unwrap();
- // match Config::new(&config_file) {
+ writeln!(
+ &mut message,
+ "[LOOKING FOR CONFIG FILE FROM]: {:?}",
+ config_file
+ )
+ .unwrap();
match Config::from_path(&config_file, None) {
Ok(_) => message.push_str("[CONFIG FILE]: Well defined.\n"),
- Err(e) => writeln!(&mut message, "[CONFIG ERROR]: {}", e).unwrap(),
+ Err(e) => writeln!(
+ &mut message,
+ "[CONFIG ERROR]: {}. \n By default, zellij loads default configuration",
+ e
+ )
+ .unwrap(),
}
} else {
message.push_str("[CONFIG FILE]: Not Found\n");