From 64671a17c1e353b37ed432c9d7a5a1403be5d3b4 Mon Sep 17 00:00:00 2001 From: postmath Date: Fri, 14 Apr 2023 15:48:45 -0400 Subject: [PATCH] Improve error message for issue #850. (#876) * Improve error message for issue #850. * Applied cargo fmt, doh. --- atuin-client/src/import/zsh.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/atuin-client/src/import/zsh.rs b/atuin-client/src/import/zsh.rs index 50c64cb..19917da 100644 --- a/atuin-client/src/import/zsh.rs +++ b/atuin-client/src/import/zsh.rs @@ -32,7 +32,11 @@ fn default_histpath() -> Result { 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" + )) + } } } }