elaborate error log functor stack
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
16e76d45cb
commit
f10f5319db
2 changed files with 63 additions and 12 deletions
|
@ -95,7 +95,10 @@ impl Console {
|
|||
ReadlineEvent::Line(string) => self.clone().handle(string).await,
|
||||
ReadlineEvent::Interrupted => continue,
|
||||
ReadlineEvent::Eof => break,
|
||||
ReadlineEvent::Quit => services().server.shutdown().unwrap_or_else(error::into_log),
|
||||
ReadlineEvent::Quit => services()
|
||||
.server
|
||||
.shutdown()
|
||||
.unwrap_or_else(error::default_log),
|
||||
},
|
||||
Err(error) => match error {
|
||||
ReadlineError::Closed => break,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue