aboutsummaryrefslogtreecommitdiffstats
path: root/test/testabilityPatch.js
diff options
context:
space:
mode:
authorMisko Hevery2011-03-24 14:47:06 -0700
committerMisko Hevery2011-06-08 13:49:11 -0700
commit73e3f4c10c5aaefc8d8f3792fec7d1c2e2326359 (patch)
treefb162de97c56bfdfc368a3b40454ae719ec1b865 /test/testabilityPatch.js
parentec6d106d4af0885d9df3498183bbbbcc7971d55a (diff)
downloadangular.js-73e3f4c10c5aaefc8d8f3792fec7d1c2e2326359.tar.bz2
better error reporting for exceptions
Diffstat (limited to 'test/testabilityPatch.js')
-rw-r--r--test/testabilityPatch.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/testabilityPatch.js b/test/testabilityPatch.js
index 5bcee3fe..4545f937 100644
--- a/test/testabilityPatch.js
+++ b/test/testabilityPatch.js
@@ -103,7 +103,13 @@ afterEach(function() {
if ($logMock[logLevel].logs.length) {
forEach($logMock[logLevel].logs, function(log) {
forEach(log, function deleteStack(logItem) {
- if (logItem instanceof Error) delete logItem.stack;
+ if (logItem instanceof Error) {
+ dump(logItem.stack);
+ delete logItem.stack;
+ delete logItem.arguments;
+ } else {
+ dump(logItem);
+ }
});
});