We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5f68fe commit 3775862Copy full SHA for 3775862
api/controllers/WorkerController.js
@@ -25,10 +25,10 @@ module.exports = {
25
res.json(value);
26
})
27
.catch(Sequelize.UniqueConstraintError, function (err) {
28
- console.log('SequelizeError - UniqueConstraintError: ', err.errors);
+ console.log('SequelizeError - UniqueConstraintError:', err.errors);
29
return res.send(409, err.errors);
30
}).catch(Sequelize.ValidationError, function (err) {
31
- console.log('SequelizeError - ValidationError: ', err.errors);
+ console.log('SequelizeError - ValidationError:', err.errors);
32
return res.send(400, err.errors);
33
}).catch(function(err){
34
return res.negotiate(err.errors);
0 commit comments