]> source.dussan.org Git - jquery.git/commitdiff
test runner: when errors are thrown in a test, the message is successfully show on...
authorAriel Flesler <aflesler@gmail.com>
Mon, 12 May 2008 22:31:27 +0000 (22:31 +0000)
committerAriel Flesler <aflesler@gmail.com>
Mon, 12 May 2008 22:31:27 +0000 (22:31 +0000)
test/data/testrunner.js

index 0113ae5c85d074f4544730723afa49457dc9f98e..d4fdcf50f06a95797e1f276569a61e388d13c49e 100644 (file)
@@ -110,7 +110,7 @@ function test(name, callback, nowait) {
                                console.error(e);
                                console.warn(callback.toString());
                        }
-                       _config.Test.push( [ false, "Died on test #" + (_config.Test.length+1) + ": " + e ] );
+                       _config.Test.push( [ false, "Died on test #" + (_config.Test.length+1) + ": " + e.message ] );
                }
        });
        synchronize(function() {