@elisym/sdk 0.15.2 → 0.17.0

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/dist/index.js CHANGED
@@ -1940,6 +1940,14 @@ var MarketplaceService = class {
1940
1940
  cb.onFeedback?.(statusTag[1], amt, paymentReq, ev.pubkey);
1941
1941
  } catch {
1942
1942
  }
1943
+ if (provPk && statusTag[1] === "error" && !resolved) {
1944
+ const errorMessage = ev.content?.trim() || "Provider returned an error";
1945
+ done();
1946
+ try {
1947
+ cb.onError?.(errorMessage);
1948
+ } catch {
1949
+ }
1950
+ }
1943
1951
  }
1944
1952
  }
1945
1953
  )