aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 11490d4..f8534be 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -94,7 +94,13 @@ pub fn run() {
// Open a connection and add work for each config
for config in configs {
- let fut = IrcServer::new_future(reactor.handle(), &config).unwrap();
+ let fut = match IrcServer::new_future(reactor.handle(), &config) {
+ Ok(v) => v,
+ Err(e) => {
+ error!("Failed to connect: {}", e);
+ return;
+ }
+ };
let server = match reactor.run(fut) {
Ok(v) => {