Exception: HTMLProofer::Middleware::InvalidHtmlError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/html-proofer/middleware.rb

Instance Method Summary collapse

Constructor Details

#initialize(failures) ⇒ InvalidHtmlError

Returns a new instance of InvalidHtmlError.


7
8
9
# File 'lib/html-proofer/middleware.rb', line 7

def initialize(failures)
  @failures = failures
end

Instance Method Details

#messageObject


11
12
13
# File 'lib/html-proofer/middleware.rb', line 11

def message
    "HTML Validation errors (skip by adding `?proofer-ignore` to URL): \n#{@failures.join("\n")}"
end