diff --git a/lib/model.js b/lib/model.js index 035cb5bfc520..5ac6f28fc248 100644 --- a/lib/model.js +++ b/lib/model.js @@ -329,7 +329,7 @@ class Model { static _transformStringAssociation(include, self) { if (self && typeof include === 'string') { if (!Object.prototype.hasOwnProperty.call(self.associations, include)) { - throw new Error(`Association with alias "${include}" does not exist`); + throw new Error(`Association with alias "${include}" does not exist on ${self.name}`); } return self.associations[include]; }