add some logging

This commit is contained in:
dylan 2024-03-31 14:13:58 -07:00
parent 1a96d89f0f
commit 7e740c99dc

View File

@ -23,6 +23,9 @@ const getRom = async (inputFile: string) => {
const match = js.match(/\b_cartdat\s*=\s*(\[.*\])/);
if (!match) {
console.log("BEGIN js contents --------------------------------------------");
console.log(js);
console.log("END js contents ----------------------------------------------");
throw Error("Could not properly parse js file to find _cartdat");
}