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.
2 parents 8b57d27 + b5f68fe commit fa7b528Copy full SHA for fa7b528
api/controllers/WorkerController.js
@@ -26,10 +26,10 @@ module.exports = {
26
res.json(value);
27
})
28
.catch(Sequelize.UniqueConstraintError, function (err) {
29
- console.log('SequelizeError: UniqueConstraintError: ', err.errors);
+ console.log('SequelizeError - UniqueConstraintError: ', err.errors);
30
return res.send(409, err.errors);
31
}).catch(Sequelize.ValidationError, function (err) {
32
- console.log('SequelizeError: ValidationError: ', err.errors);
+ console.log('SequelizeError - ValidationError: ', err.errors);
33
return res.send(400, err.errors);
34
}).catch(function(err){
35
console.log(err.errors);
0 commit comments