From 96550d918ba6db4561f3636fbe011eb96090e8cf Mon Sep 17 00:00:00 2001 From: Kenshi Muto Date: Sat, 20 Feb 2021 18:01:14 +0900 Subject: [PATCH] avoid internal error of review-vol and review-index. closes: #1671 --- lib/review/tocprinter.rb | 2 +- lib/review/volumeprinter.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/review/tocprinter.rb b/lib/review/tocprinter.rb index 59c6bd673..bdce50acc 100644 --- a/lib/review/tocprinter.rb +++ b/lib/review/tocprinter.rb @@ -256,7 +256,7 @@ def build_chap(chap) begin compiler.compile(@book.chapter(chap.name)) rescue ReVIEW::ApplicationError => e - @logger.error e + @logger.error e.message exit 1 end end diff --git a/lib/review/volumeprinter.rb b/lib/review/volumeprinter.rb index 0aafddf17..a812c82cb 100644 --- a/lib/review/volumeprinter.rb +++ b/lib/review/volumeprinter.rb @@ -45,7 +45,7 @@ def execute(*args) end end rescue ReVIEW::FileNotFound, ReVIEW::CompileError, ReVIEW::ApplicationError => e - @logger.error e + @logger.error e.message exit 1 end puts '============================='