Getting more errors from tests.
authorRobert Konigsberg <konigsberg@google.com>
Tue, 14 Jun 2011 18:33:02 +0000 (14:33 -0400)
committerRobert Konigsberg <konigsberg@google.com>
Tue, 14 Jun 2011 18:33:02 +0000 (14:33 -0400)
auto_tests/misc/fake-jstestdriver.js

index 9ca10cd..4397741 100644 (file)
@@ -54,7 +54,10 @@ function TestCase(name) {
       this.tearDown();
       return true;
     } catch (e) {
-      console.log(e.stack);
+      console.log(e);
+      if (e.stack) {
+        console.log(e.stack);
+      }
       return false;
     }
   };