From faf7bc52a7d1081cb196649257ee7d76f45266b8 Mon Sep 17 00:00:00 2001 From: Charlie Schliesser Date: Mon, 5 Sep 2016 11:18:31 -0500 Subject: [PATCH] Fixed broken template literal syntax in `getResolveValue`. (#2951) --- src/transition/transition.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 +}