@tangle-network/agent-provider-tangle 0.14.2 → 0.14.3

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.
@@ -23,9 +23,12 @@ function failureCause(error) {
23
23
  if (name === "TimeoutError")
24
24
  return "timed out";
25
25
  const status = httpStatus(detail.status);
26
+ const code = bareIdentifier(detail.code);
27
+ if (status !== undefined && code !== undefined) {
28
+ return `HTTP ${status}; code ${code}`;
29
+ }
26
30
  if (status !== undefined)
27
31
  return `HTTP ${status}`;
28
- const code = bareIdentifier(detail.code);
29
32
  if (code !== undefined)
30
33
  return `code ${code}`;
31
34
  // A bare `Error` names no cause beyond the message, which is never carried.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/agent-provider-tangle",
3
- "version": "0.14.2",
3
+ "version": "0.14.3",
4
4
  "description": "AgentEnvironmentProvider adapter for Tangle sandboxes",
5
5
  "type": "module",
6
6
  "license": "MIT",