aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib.rs b/src/lib.rs
index a707059..27c8c9f 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -93,8 +93,7 @@ impl IrcClient <state::Disconnected> {
},
Err(IoError{kind: std::io::TimedOut, ..}) => continue,
Err(e) => {
- println!("Unable to read line: {}", e);
- break;
+ fail!("Unable to read line: {}", e);
}
}
}