add some logging?

This commit is contained in:
dylan 2024-03-27 19:22:08 -07:00
parent a8052fc100
commit b54cda63e8

View File

@ -22,6 +22,13 @@ const execPico = (args: string[]) => {
export const pico8 = {
async export(fileIn: string, fileOut: string) {
return await execPico([fileIn, "-export", fileOut]);
try {
return await execPico([fileIn, "-export", fileOut]);
} catch (err) {
console.log("CAUGHT ERROR", err);
}
}
}
}
// const result = await pico8.export("/home/dylan/.lexaloffle/pico-8/carts/candles/candles.p8", "/home/dylan/repos/picobook/sample.js");
// console.log(result);