From a56d5f2ddfcfb290c308f2b1a3464c3bebc340de Mon Sep 17 00:00:00 2001 From: sigoden Date: Sun, 8 Sep 2024 19:50:02 +0800 Subject: feat: save rag in YAML instead of bin (#848) --- src/config/session.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/config/session.rs') diff --git a/src/config/session.rs b/src/config/session.rs index 4051936..476ad51 100644 --- a/src/config/session.rs +++ b/src/config/session.rs @@ -326,10 +326,10 @@ impl Session { self.path = Some(session_path.display().to_string()); let content = serde_yaml::to_string(&self) - .with_context(|| format!("Failed to serde session {}", self.name))?; + .with_context(|| format!("Failed to serde session '{}'", self.name))?; write(session_path, content).with_context(|| { format!( - "Failed to write session {} to {}", + "Failed to write session '{}' to '{}'", self.name, session_path.display() ) -- cgit v1.2.3