diff --git a/html/.eslintrc.js b/html/.eslintrc.js
index c205f3c3..f6783bed 100644
--- a/html/.eslintrc.js
+++ b/html/.eslintrc.js
@@ -50,7 +50,6 @@ module.exports = {
'no-plusplus': 0,
'no-tabs': 0,
'no-ternary': 0,
- 'no-throw-literal': 0,
'no-undefined': 0,
'no-underscore-dangle': 0,
'no-var': 0,
diff --git a/html/app.js b/html/app.js
index c22ec712..d39ca9f0 100644
--- a/html/app.js
+++ b/html/app.js
@@ -423,16 +423,14 @@ if (window.CefSharp) {
if (extra !== undefined) {
text.push(extra);
}
+ text = text.map((s) => escapeTag(s)).join('
');
if (text.length) {
new Noty({
type: 'error',
- text: text.map((s) => escapeTag(s)).join('
')
+ text
}).show();
}
- throw {
- 'status_code': code,
- error
- };
+ throw new Error(text);
};
API.bulk = function (options) {