Module: Jekyll::ExceptionFilter

Defined in:
jekyll/_plugins/exception.rb

Instance Method Summary collapse

Instance Method Details

#raise_error(msg) ⇒ Object



8
9
10
11
12
# File 'jekyll/_plugins/exception.rb', line 8

def raise_error(msg)
    bad_file = @context.registers[:page]['path']
    err_msg = "On #{bad_file}: #{msg}"
  raise err_msg
end