include session path in persist errors
@@ -303,7 +303,7 @@ fn main() -> Result<i32> {
if let Some(ref mut s) = session {
s.persist()
- .context(format!("couldn't persist session {:?}", s.path))?;
+ .with_context(|| format!("couldn't persist session {}", s.path.display()))?;
}
Ok(exit_code)
