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

Commit 52cdbe3b by Christian Holm

Include the error message in the exception to ease debug

1 parent af21b157
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!