aboutsummaryrefslogtreecommitdiffstats
path: root/src/Scope.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/Scope.js')
-rw-r--r--src/Scope.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Scope.js b/src/Scope.js
index f577f695..549cc944 100644
--- a/src/Scope.js
+++ b/src/Scope.js
@@ -147,7 +147,7 @@ function createScope(parent, services, existing) {
try {
return expressionCompile(expression).apply(instance, slice.call(arguments, 2, arguments.length));
} catch (e) {
- error(e);
+ (instance.$log || {error:error}).error(e);
if (isFunction(exceptionHandler)) {
exceptionHandler(e);
} else if (exceptionHandler) {