Class: Middleman::Cli::BuildAction
- Inherits:
-
Object
- Object
- Middleman::Cli::BuildAction
- Defined in:
- lib/bookbinder/middleman_runner.rb
Instance Method Summary collapse
Instance Method Details
#handle_error(file_name, response, e = Thor::Error.new(response)) ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'lib/bookbinder/middleman_runner.rb', line 8 def handle_error(file_name, response, e=Thor::Error.new(response)) our_errors = [Bookbinder::CodeExampleReader::InvalidSnippet, QuicklinksRenderer::BadHeadingLevelError, Git::GitExecuteError] raise e if our_errors.include?(e.class) original_handle_error(e, file_name, response) end |