diff --git a/src/transition/transition.ts b/src/transition/transition.ts index 174932206..a142c6683 100644 --- a/src/transition/transition.ts +++ b/src/transition/transition.ts @@ -1,4 +1,5 @@ /** @module transition */ /** for typedoc */ +import {stringify} from "../common/strings"; import {trace} from "../common/trace"; import {services} from "../common/coreservices"; import { @@ -257,7 +258,7 @@ export class Transition implements IHookRegistry { const getData = (token: any) => { var resolvable = resolveContext.getResolvable(token); if (resolvable === undefined) { - throw new Error("Dependency Injection token not found: ${stringify(token)}"); + throw new Error(`Dependency Injection token not found: ${stringify(token)}`); } return resolvable.data; }; @@ -580,4 +581,4 @@ export class Transition implements IHookRegistry { return `Transition#${id}( '${from}'${fromParams} -> ${toValid}'${to}'${toParams} )`; } -} \ No newline at end of file +}