Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
add err msg on failure during Load_rss
reger2f84b04fa96c
diff --git a/htroot/Load_RSS_p.html b/htroot/Load_RSS_p.htmlindex db78b19bf..79249373b 100644--- a/htroot/Load_RSS_p.html+++ b/htroot/Load_RSS_p.html@@ -59,11 +59,11 @@</dl><input type="submit" name="indexAllItemContent" value="Add All Items to Index (full content of url)" />#(/showload)#</dd>-+ #(showerrmsg)#::<dd class="error">#[msgtxt]#</dd>#(/showerrmsg)#</dl></fieldset></form>-+#(showscheduledfeeds)#::<form id="scheduledfeeds" action="Load_RSS_p.html" method="post" enctype="multipart/form-data"><fieldset><legend>List of Scheduled RSS Feed Load Targets</legend>diff --git a/htroot/Load_RSS_p.java b/htroot/Load_RSS_p.javaindex 3cb2a06fc..18a209da5 100644--- a/htroot/Load_RSS_p.java+++ b/htroot/Load_RSS_p.java@@ -73,7 +73,8 @@ public class Load_RSS_p {prop.put("shownewfeeds", 0);prop.put("showscheduledfeeds", 0);prop.put("url", "");-+ prop.put("showerrmsg", 0);+if (post != null && post.containsKey("removeSelectedFeedsNewList")) {for (final Map.Entry<String, String> entry: post.entrySet()) {if (entry.getValue().startsWith("mark_")) try {@@ -276,6 +277,8 @@ public class Load_RSS_p {rss = resource == null ? null : RSSReader.parse(RSSFeed.DEFAULT_MAXSIZE, resource);} catch (final IOException e) {ConcurrentLog.warn("Load_RSS", e.getMessage());+ prop.put("showerrmsg", 1);+ prop.put("showerrmsg_msgtxt", "no valid response from given url");return prop; // if no response nothing to process further}