We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bf44aa commit 0e7b177Copy full SHA for 0e7b177
src/main.rs
@@ -44,7 +44,7 @@ struct Client {
44
impl Handler for Client {
45
fn on_open(&mut self, _: Handshake) -> WS_RESULT<()> {
46
match self.nettfiske.setup_logger(self.logging) {
47
- Err(why) => panic!("{}", why),
+ Err(why) => error!("Error setting UP log: {}", why),
48
Ok(_) => (),
49
};
50
@@ -134,7 +134,10 @@ fn main() {
134
}
135
136
// Ensure the client has a chance to finish up
137
- client.join().unwrap();
+ match client.join() {
138
+ Ok(_) => (),
139
+ Err(err) => println!("thread panicked {:?}", err),
140
+ }
141
142
143
0 commit comments