npm install --save exceptionhandler
Returns a function that takes two boolean parameters.
var errhandler require('exceptionhandler')
errhandler(true, true)
true: Open in a new window
false: Redirect current page
true: Search StackOverflow for error message
false: Search lmgtfy for error message