Skip to content

Commit 0e7b177

Browse files
author
Flavio Oliveira
committed
Release 0.2.1
1 parent 1bf44aa commit 0e7b177

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/main.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ struct Client {
4444
impl Handler for Client {
4545
fn on_open(&mut self, _: Handshake) -> WS_RESULT<()> {
4646
match self.nettfiske.setup_logger(self.logging) {
47-
Err(why) => panic!("{}", why),
47+
Err(why) => error!("Error setting UP log: {}", why),
4848
Ok(_) => (),
4949
};
5050

@@ -134,7 +134,10 @@ fn main() {
134134
}
135135

136136
// Ensure the client has a chance to finish up
137-
client.join().unwrap();
137+
match client.join() {
138+
Ok(_) => (),
139+
Err(err) => println!("thread panicked {:?}", err),
140+
}
138141
}
139142
}
140143

0 commit comments

Comments
 (0)