From 0cd35af0ba49d8286f55b36756b0a896dbd5eef8 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 26 Dec 2012 18:24:14 +0400 Subject: [PATCH] make invalid object received headlines appear less --- js/viewfeed.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/viewfeed.js b/js/viewfeed.js index 45e1a54e..b839dfd6 100644 --- a/js/viewfeed.js +++ b/js/viewfeed.js @@ -202,11 +202,13 @@ function headlines_callback2(transport, offset, background, infscroll_req) { else request_counters(); - } else { + } else if (transport.responseText) { console.error("Invalid object received: " + transport.responseText); dijit.byId("headlines-frame").attr('content', "
" + __('Could not update headlines (invalid object received - see error console for details)') + "
"); + } else { + notify_error("Error communicating with server."); } _infscroll_request_sent = 0; -- 2.39.5