@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.
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "**"
7
7
  ],
8
8
  "name": "@algorandfoundation/algokit-utils",
9
- "version": "8.0.3",
9
+ "version": "8.1.0-beta.1",
10
10
  "private": false,
11
11
  "description": "A set of core Algorand utilities written in TypeScript and released via npm that make it easier to build solutions on Algorand.",
12
12
  "author": "Algorand Foundation",
@@ -856,7 +856,16 @@ class AppClient {
856
856
  return await call();
857
857
  }
858
858
  catch (e) {
859
- throw await this.exposeLogicError(e);
859
+ const logicError = await this.exposeLogicError(e);
860
+ if (logicError instanceof types_logicError.LogicError) {
861
+ let currentLine = logicError.teal_line - logicError.lines - 1;
862
+ const stackWithLines = logicError.stack
863
+ ?.split('\n')
864
+ .map((line) => `${(currentLine += 1)}: ${line}`)
865
+ .join('\n');
866
+ config.Config.logger.error(`${logicError.message}\n\n${stackWithLines}`);
867
+ }
868
+ throw logicError;
860
869
  }
861
870
  }
862
871
  getBoxMethods() {