Stopping sending literal errors
Errors now must be of "Error" type. Rule added in eslint.
This commit is contained in:
parent
88509916a8
commit
ab0f5e9837
19 changed files with 31 additions and 28 deletions
|
@ -26,7 +26,7 @@
|
|||
const selectedFile = inputAudio.files ? inputAudio.files[0] : null;
|
||||
if (!selectedFile) {
|
||||
errorFile = true;
|
||||
throw "no file selected";
|
||||
throw new Error("no file selected");
|
||||
}
|
||||
|
||||
const fd = new FormData();
|
||||
|
|
|
@ -76,7 +76,7 @@
|
|||
break;
|
||||
}
|
||||
}
|
||||
} else throw "There is no menu called " + menu;
|
||||
} else throw new Error("There is no menu called " + menu);
|
||||
}
|
||||
|
||||
function closeMenu() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue