summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2023-12-13 08:11:10 +0800
committerGitHub <noreply@github.com>2023-12-13 08:11:10 +0800
commit10e3b6d2344e6dad4bb46501d232d1d253c80b9d (patch)
tree015bda83ea339b3f42c07fe40a1cfadde0f8e86a /src
parente4d301f3d72e6d353c92985ce61bda485532d0cc (diff)
downloadaichat-10e3b6d2344e6dad4bb46501d232d1d253c80b9d.tar.gz
chore: update change session error message (#267)
Diffstat (limited to 'src')
-rw-r--r--src/config/mod.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/config/mod.rs b/src/config/mod.rs
index 76ddd4c..3ea62b9 100644
--- a/src/config/mod.rs
+++ b/src/config/mod.rs
@@ -520,7 +520,9 @@ impl Config {
pub fn start_session(&mut self, session: Option<&str>) -> Result<()> {
if self.session.is_some() {
- bail!("Already in a session, please use '.clear session' to exit the session first?");
+ bail!(
+ "Already in a session, please run '.exit session' first to exit the current session."
+ );
}
match session {
None => {