mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 15:05:56 +00:00
add a less intimidating error message when backend times out and/or fails to return valid JSON
This commit is contained in:
@@ -987,7 +987,12 @@ function newVersionDlg() {
|
||||
|
||||
function handle_rpc_json(transport, scheduled_call) {
|
||||
try {
|
||||
var reply = JSON.parse(transport.responseText);
|
||||
try {
|
||||
var reply = JSON.parse(transport.responseText);
|
||||
} catch (e) {
|
||||
alert(__("Failed to parse server reply. This could be caused by a server or network timeout. Backend output was logged to the browser console."));
|
||||
console.log("handle_rpc_json, received: " + transport.responseText);
|
||||
}
|
||||
|
||||
if (reply) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user