From 09c11df764a5485e2a6a670d3218f2f7dadaa9d1 Mon Sep 17 00:00:00 2001 From: wn_ Date: Thu, 19 Jun 2025 20:37:49 +0000 Subject: Clean up displaying subscription error info, log more detailed info to the event log. --- js/CommonDialogs.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'js') diff --git a/js/CommonDialogs.js b/js/CommonDialogs.js index eaa0249e8..1215d567d 100644 --- a/js/CommonDialogs.js +++ b/js/CommonDialogs.js @@ -118,10 +118,10 @@ const CommonDialogs = { `, - show_error: function (msg) { + show_error: function (msg, additional_info) { const elem = App.byId("fadd_error_message"); - elem.innerHTML = msg; + elem.innerHTML = `${msg}${additional_info ? `

${__('Additional information')}

${additional_info}` : ''}`; Element.show(elem); }, @@ -168,9 +168,7 @@ const CommonDialogs = { dialog.show_error(__("Specified URL seems to be invalid.")); break; case 3: - dialog.show_error(` - ${__("Specified URL doesn't seem to contain any feeds.")} - `); + dialog.show_error(__("Specified URL doesn't seem to contain any feeds."), App.escapeHtml(rc['message'])); break; case 4: { @@ -195,7 +193,7 @@ const CommonDialogs = { } break; case 5: - dialog.show_error(__("Couldn't download the specified URL: %s").replace("%s", App.escapeHtml(rc['message']))); + dialog.show_error(__("Couldn't download the specified URL."), App.escapeHtml(rc['message'])); break; case 7: dialog.show_error(__("Error while creating feed database entry.")); -- cgit v1.2.3-54-g00ecf