summaryrefslogtreecommitdiff
path: root/functions.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2009-02-04 23:19:16 +0300
committerAndrew Dolgov <[email protected]>2009-02-04 23:19:16 +0300
commit91743a49ff54862ac5b14e6d026849705c8651df (patch)
tree42e1672c8e478020a6352f4f41849162570c1c09 /functions.js
parentb15e516ec41c754a9b134e4eb5b4092f19a863ae (diff)
display N/A instead of undefined in fatal errors when ext_info is not present
Diffstat (limited to 'functions.js')
-rw-r--r--functions.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/functions.js b/functions.js
index 837a6b42f..ff6075f11 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) {