Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Construct new errors #31

Merged
merged 1 commit into from
Mar 26, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions js/esptool.js
Original file line number Diff line number Diff line change
Expand Up @@ -1018,10 +1018,10 @@ class EspLoader {
}
setDataLengths = setDataLengths.bind(this);
if (readBits > 32) {
throw FatalError("Reading more than 32 bits back from a SPI flash operation is unsupported")
throw new FatalError("Reading more than 32 bits back from a SPI flash operation is unsupported")
}
if (data.length > 64) {
throw FatalError("Writing more than 64 bytes of data with one SPI command is unsupported")
throw new FatalError("Writing more than 64 bytes of data with one SPI command is unsupported")
}

let dataBits = data.length * 8
Expand Down Expand Up @@ -1066,7 +1066,7 @@ class EspLoader {
return
}
}
throw FatalError("SPI command did not complete in time")
throw new FatalError("SPI command did not complete in time")
}
waitDone = waitDone.bind(this);
await waitDone();
Expand Down