diff options
author | postmath <postmath@users.noreply.github.com> | 2023-04-14 15:48:45 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-14 19:48:45 +0000 |
commit | 64671a17c1e353b37ed432c9d7a5a1403be5d3b4 (patch) | |
tree | 1a40c4ab0e40198214e093bafdac656787ab32df | |
parent | c05d2850420a2c163b8f62c33a6cef7c0ae1ad8d (diff) |
Improve error message for issue #850. (#876)
* Improve error message for issue #850.
* Applied cargo fmt, doh.
-rw-r--r-- | atuin-client/src/import/zsh.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/atuin-client/src/import/zsh.rs b/atuin-client/src/import/zsh.rs index 50c64cb2..19917daf 100644 --- a/atuin-client/src/import/zsh.rs +++ b/atuin-client/src/import/zsh.rs @@ -32,7 +32,11 @@ fn default_histpath() -> Result<PathBuf> { break Ok(histpath); } } - None => break Err(eyre!("Could not find history file. Try setting $HISTFILE")), + None => { + break Err(eyre!( + "Could not find history file. Try setting and exporting $HISTFILE" + )) + } } } } |