diff --git a/src/index.ts b/src/index.ts index 48be17e..7bd22fd 100644 --- a/src/index.ts +++ b/src/index.ts @@ -42,7 +42,7 @@ app.use('/cart', cartRouter); app.all('*', (req, res, next) => { // res.status(404).json({ error: 'Route not found' }); - const error = new ApiError('Route not found'); + const error = new ApiError('Are you lost?'); error.statusCode = 404; error.status = 'fail'; next(error)