不要怂,就是干,撸起袖子干!

Commit dd428a06 by Chris Jensen Committed by Sushant

refactor(association): name model that association is missing from (#11290)

1 parent ff97d93c
Showing with 1 additions and 1 deletions
......@@ -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];
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!