Skip to content

Commit

Permalink
Merge pull request #133 from sezanzeb/master
Browse files Browse the repository at this point in the history
Printing the actual error message when Model.set fails
  • Loading branch information
matmar10 committed Apr 5, 2022
2 parents d4bb345 + a4589d9 commit 657dc8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ Loader.prototype.loadFixture = function(fixture, models) {
// don't include VIRTUAL column in filter condition
where[k] = val;
} catch (err) {
throw new Error('Error using Model.set method for model ' + fixture.model + ' property ' + k + ' (possibly due to the use of instance methods). You should use option ignoreSet: true');
throw new Error('Error using Model.set method for model ' + fixture.model + ' property ' + k + ' (possibly due to the use of instance methods). You should use option ignoreSet: true.\n' + err);
}
} else {
where[k] = data[k];
Expand Down

0 comments on commit 657dc8e

Please sign in to comment.