]> git.wh0rd.org Git - tt-rss.git/commitdiff
fix backend sanity failure (take 2)
authorAndrew Dolgov <fox@bah.spb.su>
Fri, 30 Dec 2005 16:16:47 +0000 (17:16 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Fri, 30 Dec 2005 16:16:47 +0000 (17:16 +0100)
backend.php
tt-rss.js

index e4dd4fea1662bdaabd1f191613e94d9139990e74..3578871e6a8d5bd793f632b6842a0892bf0d8c3a 100644 (file)
                }
 
                if ($subop == "sanityCheck") {
-                       sanity_check($link);
+                       if (sanity_check($link)) {
+                               print "<error error-code=\"0\"/>";
+                       }
                }
 
                if ($subop == "globalPurge") {
index 85c4564dffe93f6393a26db5db9c5c9cc23f306f..283412623a2ad90414563e91266a2d04a74a7d04 100644 (file)
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -111,6 +111,8 @@ function backend_sanity_check_callback() {
        if (xmlhttp.readyState == 4) {
 
                try {
+
+                       alert(xmlhttp.responseText);
                
                        if (!xmlhttp.responseXML) {
                                fatalError(3);