mirror of
https://github.com/anticensority/runet-censorship-bypass.git
synced 2024-11-27 20:03:45 +03:00
Explicitly throw error for bad urls instead of suppressing it
This commit is contained in:
parent
f87a1c0178
commit
5be69e9c51
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user