@algorandfoundation/algokit-utils 8.0.3 → 8.1.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -854,7 +854,16 @@ class AppClient {
854
854
  return await call();
855
855
  }
856
856
  catch (e) {
857
- throw await this.exposeLogicError(e);
857
+ const logicError = await this.exposeLogicError(e);
858
+ if (logicError instanceof LogicError) {
859
+ let currentLine = logicError.teal_line - logicError.lines - 1;
860
+ const stackWithLines = logicError.stack
861
+ ?.split('\n')
862
+ .map((line) => `${(currentLine += 1)}: ${line}`)
863
+ .join('\n');
864
+ Config.logger.error(`${logicError.message}\n\n${stackWithLines}`);
865
+ }
866
+ throw logicError;
858
867
  }
859
868
  }
860
869
  getBoxMethods() {