aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTeddy Wing2016-04-24 05:48:05 -0400
committerTeddy Wing2016-04-24 05:48:05 -0400
commitb11af1eccb5116b8901dd999f48210ce955ea9b7 (patch)
tree3bfbefef594887ce8ab212aec1395ff4091193c1 /src
parent99a0daa14750b901b6d8974bc3fdada33d538acb (diff)
downloadmutt-alias-auto-add-b11af1eccb5116b8901dd999f48210ce955ea9b7.tar.bz2
main: Change `unwrap` to `expect`
Give us a better error message if a failure ever happens here. Was inspired by my experience in 2d1f7031f03194fbceffc15b1d6376abea243e22, where the `unwrap` calls gave no useful information.
Diffstat (limited to 'src')
-rw-r--r--src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 0732f6d..e2e0030 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -26,7 +26,7 @@ fn main() {
let stdin = io::stdin();
for line in stdin.lock().lines() {
- let line = line.unwrap();
+ let line = line.expect("Error reading from STDIN");
// Write the message to STDOUT so that it can be properly read by Mutt
println!("{}", line);