From a4589d9d04e85f870f26b63f6fbffebbaea51a35 Mon Sep 17 00:00:00 2001 From: Tobi Date: Mon, 17 Jan 2022 18:39:13 +0100 Subject: [PATCH] Printing the actual error message --- lib/loader.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/loader.js b/lib/loader.js index 7e4dd42..933e4d4 100644 --- a/lib/loader.js +++ b/lib/loader.js @@ -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];