From 1988a1fce1cd700e1b51ac32f77c084521e5b5f6 Mon Sep 17 00:00:00 2001 From: simonihmig Date: Fri, 4 Feb 2022 17:20:00 +0100 Subject: [PATCH] Better error message for unregister assertion --- packages/ember-stargate/src/services/-portal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ember-stargate/src/services/-portal.js b/packages/ember-stargate/src/services/-portal.js index 071030ae..551952d4 100644 --- a/packages/ember-stargate/src/services/-portal.js +++ b/packages/ember-stargate/src/services/-portal.js @@ -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--;