@alchemycodelab/create-app
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -1,3 +0,1 @@ | ||
const mongoose = require('mongoose'); | ||
// eslint-disable-next-line no-unused-vars | ||
@@ -7,7 +5,2 @@ module.exports = (err, req, res, next) => { | ||
if(err instanceof mongoose.Error.ValidationError || | ||
err instanceof mongoose.Error.CastError) { | ||
status = 400; | ||
} | ||
res.status(status); | ||
@@ -14,0 +7,0 @@ |
{ | ||
"name": "@alchemycodelab/create-app", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "repository": { |
19943
356