Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests/lib
diff options
context:
space:
mode:
authorbenakamoorthi <benaka.moorthi@gmail.com>2012-08-14 01:50:50 +0400
committerbenakamoorthi <benaka.moorthi@gmail.com>2012-08-14 01:50:50 +0400
commit041a7db430cb5ee1fa8f78437328a042aaed11d5 (patch)
tree91864e03c47fb0cba1b51ee9a21ec26eb6096da4 /tests/lib
parenta1498d0794d6616ee7f32919c53997285f785958 (diff)
Refs #3290, show http response when visualphpunit gives HTTP error.
git-svn-id: http://dev.piwik.org/svn/trunk@6733 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'tests/lib')
-rwxr-xr-xtests/lib/visualphpunit/app/view/home/index.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/lib/visualphpunit/app/view/home/index.html b/tests/lib/visualphpunit/app/view/home/index.html
index 26171ed97d..6e2c28d525 100755
--- a/tests/lib/visualphpunit/app/view/home/index.html
+++ b/tests/lib/visualphpunit/app/view/home/index.html
@@ -466,7 +466,11 @@
runTest(testIdx + 1, callback);
},
error: function(xhr, status, error) {
- $('#fatal-test-error pre').text("Exception: " + error.message);
+ if (error.message) {
+ $('#fatal-test-error pre').text("Exception: " + error.message);
+ } else {
+ $('#fatal-test-error pre').text("HTTP Error, response: " + xhr.responseText);
+ }
$('#fatal-test-error').show();
}
});