@haven-fi/solauto-sdk 1.0.179 → 1.0.180

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.
@@ -339,7 +339,7 @@ class TransactionsManager {
339
339
  const errorDetails = (0, transactionUtils_1.getErrorInfo)(tx, e);
340
340
  this.updateStatus(txName, errorDetails.canBeIgnored
341
341
  ? TransactionStatus.Skipped
342
- : TransactionStatus.Failed, attemptNum, undefined, undefined, errorDetails.errorInfo ?? "Unknown error");
342
+ : TransactionStatus.Failed, attemptNum, undefined, undefined, errorDetails.errorInfo ?? errorDetails.errorName ?? "Unknown error");
343
343
  this.txHandler.log(`${errorDetails.errorName ?? "Unknown error"}: ${errorDetails.errorInfo ?? "unknown"}`);
344
344
  if (!errorDetails.canBeIgnored) {
345
345
  throw e;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haven-fi/solauto-sdk",
3
- "version": "1.0.179",
3
+ "version": "1.0.180",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "description": "Typescript SDK for the Solauto program on the Solana blockchain",
@@ -542,7 +542,7 @@ export class TransactionsManager {
542
542
  attemptNum,
543
543
  undefined,
544
544
  undefined,
545
- errorDetails.errorInfo ?? "Unknown error"
545
+ errorDetails.errorInfo ?? errorDetails.errorName ?? "Unknown error"
546
546
  );
547
547
  this.txHandler.log(`${errorDetails.errorName ?? "Unknown error"}: ${errorDetails.errorInfo ?? "unknown"}`);
548
548