不要怂,就是干,撸起袖子干!

Commit 26582414 by Mick Hansen

Merge pull request #4080 from peakon/fk_error_message

Include the error message in the exception to ease debug
2 parents 826607a4 52cdbe3b
Showing with 1 additions and 0 deletions
......@@ -363,6 +363,7 @@ Query.prototype.formatError = function (err) {
table = table ? table[1] : undefined;
return new sequelizeErrors.ForeignKeyConstraintError({
message: errMessage,
fields: null,
index: index,
table: table,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!