Improve error message for issue #850. (#876)

* Improve error message for issue #850.

* Applied cargo fmt, doh.
This commit is contained in:
postmath 2023-04-14 15:48:45 -04:00 committed by GitHub
parent c05d285042
commit 64671a17c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"
))
}
}
}
}