var router   = require('express').Router()



router.get('/', function(req, res, next) {
    var a = 1 / 0
    next(null)
})



module.exports = router

var router   = require('express').Router()



router.get('/', function(req, res, next) {
    var a = 1 / 0
    next(a)
})



module.exports = router

Raise error