mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Trim readFile error message
This commit is contained in:
parent
fa156c3733
commit
e5b3ba3d9e
1 changed files with 1 additions and 1 deletions
|
|
@ -299,7 +299,7 @@ export function FileReader () {
|
|||
function readFile(_file, format, encoding) {
|
||||
file = _file;
|
||||
if (!file || !file.name || !(file.path || file.stream || file.buffer)) {
|
||||
throw new Error("cannot read as File: " + JSON.stringify(file));
|
||||
throw new Error("cannot read as File: " + JSON.stringify(file).slice(0, 1000));
|
||||
}
|
||||
if (0 !== self.readyState) {
|
||||
console.log("already loading, request to change format ignored");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue