Incorrect error message in router.js