Stopping sending literal errors
Errors now must be of "Error" type. Rule added in eslint.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user