diff --git a/modules/angular2/src/router/route_registry.ts b/modules/angular2/src/router/route_registry.ts index 6bf2bd10f7..976903469b 100644 --- a/modules/angular2/src/router/route_registry.ts +++ b/modules/angular2/src/router/route_registry.ts @@ -167,7 +167,8 @@ export class RouteRegistry { } if (normalizedLinkParams.length < 2) { - throw new BaseException(`Link "${ListWrapper.toJSON(linkParams)}" must include a route name.`); + let msg = `Link "${ListWrapper.toJSON(linkParams)}" must include a route name.`; + throw new BaseException(msg); } for (let i = 1; i < normalizedLinkParams.length; i += 1) {