diff --git a/routes/storage.js b/routes/storage.js index b3f4c797815429ee06b754f96c17dd5787926cc8..0da21d2d46bf8db2380e538f71930946793cf90a 100644 --- a/routes/storage.js +++ b/routes/storage.js @@ -61,7 +61,7 @@ router.post('/', function(req, res, next){ var error = new Error("You can't store an empty resource!"); error.status = 400; - debug(err); + debug(error); next(error); }