diff --git a/Scripts/ASCIIToHex.js b/Boop/Boop/scripts/ASCIIToHex.js similarity index 100% rename from Scripts/ASCIIToHex.js rename to Boop/Boop/scripts/ASCIIToHex.js diff --git a/Scripts/HexToASCII.js b/Boop/Boop/scripts/HexToASCII.js similarity index 77% rename from Scripts/HexToASCII.js rename to Boop/Boop/scripts/HexToASCII.js index dd622582..3378d398 100644 --- a/Scripts/HexToASCII.js +++ b/Boop/Boop/scripts/HexToASCII.js @@ -21,8 +21,10 @@ function main(state) { buf += String.fromCharCode(parseInt(hexBuf, 16)); hexBuf = ""; } - } else if(c != ' ' && c != '\t' && c != '\n' && c != '\r') - throw "Not hex"; + } else if(c != ' ' && c != '\t' && c != '\n' && c != '\r') { + state.postError("Text is not hex") + throw "Not hex"; + } } state.fullText = buf; -} \ No newline at end of file +}