Skip to content

Commit

Permalink
Merge pull request #31 from NabuCasa/new-error
Browse files Browse the repository at this point in the history
Construct new errors
  • Loading branch information
makermelissa authored Mar 26, 2022
2 parents 72ad955 + a3d20d7 commit 825c9c9
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit 825c9c9

Please sign in to comment.