aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index d2c965f..30abdec 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -758,7 +758,10 @@ fn main() {
exit(0);
}
let mut bk = Bk::new(epub, state.bk);
- bk.run().unwrap();
+ bk.run().unwrap_or_else(|e| {
+ println!("run error: {}", e);
+ exit(1);
+ });
let byte = bk.chap().lines[bk.line].0;
state