1
0
Эх сурвалжийг харах

throw error instead of logging it

Gildas 7 жил өмнө
parent
commit
8828c77e3b

+ 1 - 1
extension/core/scripts/content/client.js

@@ -36,8 +36,8 @@
 					singlefile.ui.end();
 				})
 				.catch(error => {
-					console.error(error); // eslint-disable-line no-console
 					chrome.runtime.sendMessage({ processError: true });
+					throw error;
 				});
 			singlefile.ui.init();
 		}