]> git.wh0rd.org - tt-rss.git/commitdiff
display N/A instead of undefined in fatal errors when ext_info is not present
authorAndrew Dolgov <fox@bah.org.ru>
Wed, 4 Feb 2009 20:19:16 +0000 (23:19 +0300)
committerAndrew Dolgov <fox@bah.org.ru>
Wed, 4 Feb 2009 20:19:16 +0000 (23:19 +0300)
functions.js

index 837a6b42f35e7ae8d248f5cb9e547226f8de0562..ff6075f11ecfa113f1d93ba659f56fb3b256b64e 100644 (file)
@@ -18,6 +18,8 @@ function is_opera() {
 function exception_error(location, e, ext_info) {
        var msg = format_exception_error(location, e);
 
+       if (!ext_info) ext_info = "N/A";
+
        disableHotkeys();
 
        try {
@@ -1498,6 +1500,8 @@ function storeInitParam(key, value) {
 function fatalError(code, msg, ext_info) {
        try {   
 
+               if (!ext_info) ext_info = "N/A";
+
                if (code == 6) {
                        window.location.href = "tt-rss.php";                    
                } else if (code == 5) {