From 2f9121e515150981ac061389656c33eea577c336 Mon Sep 17 00:00:00 2001 From: sigoden Date: Mon, 30 Oct 2023 12:58:11 +0800 Subject: fix: bugs between sesison/role (#178) --- src/repl/handler.rs | 2 +- src/repl/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/repl') diff --git a/src/repl/handler.rs b/src/repl/handler.rs index ff6cf56..e726661 100644 --- a/src/repl/handler.rs +++ b/src/repl/handler.rs @@ -71,7 +71,7 @@ impl ReplCmdHandler { print_now!("\n"); } ReplCmd::SetRole(name) => { - let output = self.config.write().change_role(&name)?; + let output = self.config.write().set_role(&name)?; print_now!("{}\n\n", output.trim_end()); } ReplCmd::ClearRole => { diff --git a/src/repl/mod.rs b/src/repl/mod.rs index 46d0cca..a6f173a 100644 --- a/src/repl/mod.rs +++ b/src/repl/mod.rs @@ -160,7 +160,7 @@ impl Repl { } fn dump_unknown_command() { - print_now!("Error: Unknown command. Type \".help\" for more information.\n\n"); + print_now!("Unknown command. Type \".help\" for more information.\n\n"); } fn dump_repl_help() { -- cgit v1.2.3