Skip to content

Commit

Permalink
Merge pull request #19342 from emberjs/link-to-error
Browse files Browse the repository at this point in the history
  • Loading branch information
rwjblue authored Jan 18, 2021
2 parents 26f4aff + e49285a commit 20647ee
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions packages/@ember/-internals/glimmer/lib/components/link-to.ts
Original file line number Diff line number Diff line change
Expand Up @@ -811,11 +811,8 @@ const LinkComponent = EmberComponent.extend({
return routing.generateURL(route, models, query);
} catch (e) {
// tslint:disable-next-line:max-line-length
assert(
`You attempted to generate a link for the "${this.route}" route, but did not ` +
`pass the models required for generating its dynamic segments. ` +
e.message
);
e.message = `While generating link to route "${this.route}": ${e.message}`;
throw e;
}
} else {
return routing.generateURL(route, models, query);
Expand Down

0 comments on commit 20647ee

Please sign in to comment.