Skip to content

Commit

Permalink
Merge pull request #420 from kaliber5/better-error
Browse files Browse the repository at this point in the history
Better error message for unregister assertion
  • Loading branch information
simonihmig committed Feb 4, 2022
2 parents 33b5a05 + 1988a1f commit 26aa6db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ember-stargate/src/services/-portal.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default class PortalService extends Service {
unregisterPortal(name) {
let count = this.#portalCount.get(name) ?? 0;
assert(
`Trying to unregister a portal that hasn't been registered before`,
`Trying to unregister a portal "${name}" that hasn't been registered before`,
count > 0
);
count--;
Expand Down

0 comments on commit 26aa6db

Please sign in to comment.