Fix OpenRouter error handling (#2049)

This commit is contained in:
Alex Gleason
2025-04-11 14:16:38 -05:00
committed by GitHub
parent baa5be2bc0
commit cb32160a49
3 changed files with 42 additions and 6 deletions
+3 -1
View File
@@ -537,7 +537,9 @@ pub async fn cli() -> Result<()> {
session.session_file().file_stem().and_then(|s| s.to_str()),
None,
)?;
let _ = session.interactive(None).await;
if let Err(e) = session.interactive(None).await {
eprintln!("Session ended with error: {}", e);
}
Ok(())
};
}