From 719f6e15a052d50f30dcecc722193804a3d5eaed Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Tue, 20 Jul 2010 17:13:31 -0700 Subject: clean up error handling a bit. --- src/Scope.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Scope.js') 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) { -- cgit v1.2.3