Skip to content

Commit dd428a0

Browse files
chrisjensensushantdhiman
authored andcommitted
refactor(association): name model that association is missing from (#11290)
1 parent ff97d93 commit dd428a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/model.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ class Model {
329329
static _transformStringAssociation(include, self) {
330330
if (self && typeof include === 'string') {
331331
if (!Object.prototype.hasOwnProperty.call(self.associations, include)) {
332-
throw new Error(`Association with alias "${include}" does not exist`);
332+
throw new Error(`Association with alias "${include}" does not exist on ${self.name}`);
333333
}
334334
return self.associations[include];
335335
}

0 commit comments

Comments
 (0)