fixed error message using warning style

This commit is contained in:
2025-06-26 22:36:50 +02:00
parent 600feeacd5
commit 86744ce8fa
5 changed files with 14 additions and 55 deletions
+2 -2
View File
@@ -124,7 +124,7 @@ impl Bookmarks {
Ok(value) => value,
Err(error) => return Err(Error::other(format!("-- failed to conver home directory to string: {}", error.to_str().unwrap()))),
},
None => return Err(Error::other("-- `stack_home_as_tilde` = true, but home directory can't be determined")),
None => return Err(Error::other("-- `bookmarks_home_as_tilde` = true, but home directory can't be determined")),
};
path = path.replace(&home, "~");
}
@@ -138,7 +138,7 @@ impl Bookmarks {
path = segments.join(&slash);
name = apply_format(&name, &config.styles.bookmarks_name_style)?;
separator = apply_format(&separator, &config.styles.stack_separator_style)?;
separator = apply_format(&separator, &config.styles.bookmarks_seperator_style)?;
}
let mut line: String;