File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -26,11 +26,11 @@ module.exports = {
2626 res . json ( value ) ;
2727 } )
2828 . catch ( Sequelize . UniqueConstraintError , function ( err ) {
29- console . log ( 'Sequelize. UniqueConstraintError: ' , err . errors ) ;
30- return res . send ( 409 , [ ... err . errors , "Sequalize.UniqueConstraintError" ] ) ;
29+ console . log ( 'SequelizeError: UniqueConstraintError: ' , err . errors ) ;
30+ return res . send ( 409 , err . errors ) ;
3131 } ) . catch ( Sequelize . ValidationError , function ( err ) {
32- console . log ( 'Sequelize. ValidationError: ' , err . errors ) ;
33- return res . send ( 400 , [ ... err . errors , "Sequalize.ValidationError" ] ) ;
32+ console . log ( 'SequelizeError: ValidationError: ' , err . errors ) ;
33+ return res . send ( 400 , err . errors ) ;
3434 } ) . catch ( function ( err ) {
3535 console . log ( err . errors ) ;
3636 return res . negotiate ( [ ...err . errors , "Other" ] ) ;
You can’t perform that action at this time.
0 commit comments