From 5be69e9c517b0498151659ed27ba1ed6f51cd67c Mon Sep 17 00:00:00 2001 From: ilyaigpetrov Date: Sun, 11 Aug 2019 21:01:09 +0500 Subject: [PATCH] Explicitly throw error for bad urls instead of suppressing it --- .../src/extension-full/80-error-menu.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/extensions/chromium/runet-censorship-bypass/src/extension-full/80-error-menu.js b/extensions/chromium/runet-censorship-bypass/src/extension-full/80-error-menu.js index 342ccdb..afa503d 100644 --- a/extensions/chromium/runet-censorship-bypass/src/extension-full/80-error-menu.js +++ b/extensions/chromium/runet-censorship-bypass/src/extension-full/80-error-menu.js @@ -36,8 +36,10 @@ ), )} администратору прокси.`; } catch(e) { - /* Suppress for malformed urls. */ + /* For malformed urls. */ console.log('Error handling malformed URLs:', details); + const msg = `Error handling malformed URLs: ${JSON.stringify(details, null, 2)}`; + throw new TypeError(msg); } const tabId = details.tabId;