wasmoon icon indicating copy to clipboard operation
wasmoon copied to clipboard

false positive error

Open Drago-Cuven opened this issue 10 months ago • 1 comments

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');
        }

Image

Image

Drago-Cuven avatar Jun 05 '25 03:06 Drago-Cuven

Not much useful. Can you post the entire error with stack trace?

ceifa avatar Jun 11 '25 23:06 ceifa

my mistake

Drago-Cuven avatar Sep 04 '25 17:09 Drago-Cuven