Explicitly throw error for bad urls instead of suppressing it

This commit is contained in:
ilyaigpetrov 2019-08-11 21:01:09 +05:00
parent f87a1c0178
commit 5be69e9c51

View File

@ -36,8 +36,10 @@
), ),
)}</b> администратору прокси.`; )}</b> администратору прокси.`;
} catch(e) { } catch(e) {
/* Suppress for malformed urls. */ /* For malformed urls. */
console.log('Error handling malformed URLs:', details); 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; const tabId = details.tabId;