add
status code to Youch error and show it in the viewupdate
example code in readme to async/awaitupdate
examples to fully async/await code
update
dependencies to latest stable releasesupdate
readme
update
readme: requirements and examples
update
code to support hapi v17update
dependencies to newest versions
update
code formatting to ESLint styling for hapi, based oneslint-config-hapi
add
Handlebars as devDependency for template example
remove
editor config for code formatting (.editorconfig
file)add
eslint configuration via.eslintrc.json
add
required engine inpackage.json
:>=4.0.0
. This package required Node.js v4+ with release 1.0. This setting makes sure that NPM follows this dependency.
add
handling of promise rejections, likereply(Promise.reject(new Error('')))
(Thank you Tafari)
add
new optionuseYouch
(boolean) to delegate the error handling to Youch and use its viewadd
preview of Youch’s error view in the readme introductionadd
examples for the default, Youch and custom templates. Located within theexamples
directoryupdate
preview of default error view to show updated layoutupdate
highlight JS files in stacktrace (via RegEx) on default layout
optimize
plugin registration: abort early ifshowErrors
is false, don’t get the template from filesystem and don’t hook the the request lifecycle extension point
- reply developer friends error details by rendering a web view for browser based requests or via JSON for REST requests
- disable plugin by default
add
optionshowErrors
to enable plugin by a boolean value or expressionadd
optiontemplate
to render custom view templatesprovide
README to document currently available plugin features