Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- router.get('/force_async_error/0', async function (req, res, next) {
- try{
- await Promise.reject(new Error('my zoom 0'));
- }
- catch(err){
- next(err);
- }
- });
- router.get('/force_async_error/1', async function (req, res, next) {
- await Promise.reject(new Error('my zoom 1'));
- });
Add Comment
Please, Sign In to add comment