express-wrap-promise-handler
Pass promise rejects from handlers to express'
next
callback
Description
Wrap handlers that return promises to pass any rejections (or async/await)
errors into express' next
callback.
Usage
;; const app = ;app; { if !requser throw 'No user to return profile for); // Gets passed to express' next by wrapper } res;}
License
MIT
Copyright (c) 2016 Tapani Moilanen