From be621934edca1efef80cb24752fad4e1e915739f Mon Sep 17 00:00:00 2001 From: Chirayu Krishnappa Date: Tue, 6 Aug 2013 21:51:48 -0700 Subject: fix(compile): fix directive as identifier --- src/ng/compile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/ng/compile.js b/src/ng/compile.js index 91cf155e..ad979e33 100644 --- a/src/ng/compile.js +++ b/src/ng/compile.js @@ -1036,7 +1036,7 @@ function $CompileProvider($provide) { controllerInstance); if (directive.controllerAs) { if (typeof locals.$scope !== 'object') { - throw new Error('Can not export controller as "' + identifier + '". ' + + throw new Error('Can not export controller as "' + directive.controllerAs + '". ' + 'No scope object provided!'); } -- cgit v1.2.3