From 46edc57b24558ee62c095482c49f0504860bac97 Mon Sep 17 00:00:00 2001 From: James Campos Date: Mon, 13 Jul 2020 22:02:08 -0700 Subject: use anyhow in epub --- src/main.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/main.rs') 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 -- cgit v1.2.3