mirror of
https://github.com/denisidoro/navi
synced 2024-11-13 23:37:10 +00:00
Fix error message for absense of cheatsheet dir
This commit is contained in:
parent
800a7e61a7
commit
5c44bba2bf
1 changed files with 3 additions and 1 deletions
|
@ -102,7 +102,9 @@ pub fn cheat_paths(config: &Config) -> Result<String, Error> {
|
|||
.path
|
||||
.clone()
|
||||
.ok_or_else(|| anyhow!("No cheat paths"))
|
||||
.or_else(|_| cheat_paths_from_config_dir().context("No cheat paths from config directory"))
|
||||
.or_else(|_| {
|
||||
cheat_paths_from_config_dir().context("No directory for cheats in user data directory")
|
||||
})
|
||||
}
|
||||
|
||||
pub fn create_dir(path: &str) -> Result<(), Error> {
|
||||
|
|
Loading…
Reference in a new issue