mirror of
https://github.com/YGGverse/agate.git
synced 2026-04-08 12:35:28 +00:00
finish up for merge
This commit is contained in:
parent
782e043083
commit
eec057515d
3 changed files with 9 additions and 5 deletions
|
|
@ -81,8 +81,7 @@ impl Drop for Server {
|
|||
// a potential error message was not yet handled
|
||||
self.stop().unwrap();
|
||||
} else if self.output.is_some() {
|
||||
// error was already handled, ignore it
|
||||
self.stop().unwrap_or(());
|
||||
// server was already stopped
|
||||
} else {
|
||||
// we are panicking and a potential error was not handled
|
||||
self.stop().unwrap_or_else(|e| eprintln!("{:?}", e));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue