mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 22:45:56 +00:00
display N/A instead of undefined in fatal errors when ext_info is not present
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user