Skip to content

Commit

Permalink
avoid internal error of review-vol and review-index. closes: #1671
Browse files Browse the repository at this point in the history
  • Loading branch information
kmuto committed Feb 20, 2021
1 parent d426457 commit 96550d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/review/tocprinter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/review/volumeprinter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 '============================='
Expand Down

0 comments on commit 96550d9

Please sign in to comment.