]> git.wh0rd.org - tt-rss.git/blobdiff - tt-rss.js
new style exception reporting
[tt-rss.git] / tt-rss.js
index 1717cfbe27ad430d7c95df385ced05cf4ed88079..2b6f7f822bb3e0d0332dc84c0f9c896d4b4b1a41 100644 (file)
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -131,14 +131,14 @@ function backend_sanity_check_callback(transport) {
                }
 
                if (!transport.responseXML) {
-                       fatalError(3, "[D001, Received reply is not XML]: " + transport.responseText);
+                       fatalError(3, "Sanity check: Received reply is not XML", transport.responseText);
                        return;
                }
 
                var reply = transport.responseXML.firstChild.firstChild;
 
                if (!reply) {
-                       fatalError(3, "[D002, Invalid RPC reply]: " + transport.responseText);
+                       fatalError(3, "Sanity check: invalid RPC reply", transport.responseText);
                        return;
                }
 
@@ -170,7 +170,7 @@ function backend_sanity_check_callback(transport) {
                init_second_stage();
 
        } catch (e) {
-               exception_error("backend_sanity_check_callback", e);    
+               exception_error("backend_sanity_check_callback", e, transport); 
        } 
 }