We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff97d93 commit dd428a0Copy full SHA for dd428a0
lib/model.js
@@ -329,7 +329,7 @@ class Model {
329
static _transformStringAssociation(include, self) {
330
if (self && typeof include === 'string') {
331
if (!Object.prototype.hasOwnProperty.call(self.associations, include)) {
332
- throw new Error(`Association with alias "${include}" does not exist`);
+ throw new Error(`Association with alias "${include}" does not exist on ${self.name}`);
333
}
334
return self.associations[include];
335
0 commit comments