|
|
@ -20,7 +20,7 @@ module.exports = {
|
|
|
|
);
|
|
|
|
);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
convert: function convertError(error) {
|
|
|
|
convert: function convertError(error) {
|
|
|
|
let [_, query, column] = messageRegex.exec(error.message);
|
|
|
|
let [_, query, _column] = messageRegex.exec(error.message);
|
|
|
|
|
|
|
|
|
|
|
|
return new NotNullConstraintViolationError(`Missing required value for column '${error.column}' in table '${error.table}'`, {
|
|
|
|
return new NotNullConstraintViolationError(`Missing required value for column '${error.column}' in table '${error.table}'`, {
|
|
|
|
originalError: error,
|
|
|
|
originalError: error,
|
|
|
|