From: Andrew Dolgov Date: Wed, 4 Feb 2009 20:19:16 +0000 (+0300) Subject: display N/A instead of undefined in fatal errors when ext_info is not present X-Git-Tag: 1.3.1~84 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=91743a49ff54862ac5b14e6d026849705c8651df;p=tt-rss.git display N/A instead of undefined in fatal errors when ext_info is not present --- diff --git a/functions.js b/functions.js index 837a6b42..ff6075f1 100644 --- a/functions.js +++ b/functions.js @@ -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) {