wasmoon
wasmoon copied to clipboard
false positive error
in my turbowarp extension that lets you write lua code in your projects, i have the ability to see errors. the issue here is that despite the script working just fine, i still get an error. one i don't really understand at that seeing as i never used "abort" at any point. is there a specific way i'm supposed to get errors or something?
async runLua({CODE}, util) {
if (canRunLUA == false) {
return '';
} else {
if (this.DO_INIT) this.initLuaCommands(util);
try {
const result = await lua.doString(Cast.toString(CODE));
// pops the stack
lua.global.pop();
this._curErrorMsg = '';
return result ?? '';
} catch (error) {
this._lastErrorMsg = typeof error.message === 'string' ? error.message : Cast.toString(error);
this._curErrorMsg = this._lastErrorMsg
util.startHats('Drago0znzwLua_onError');
}
Not much useful. Can you post the entire error with stack trace?
my mistake