@envoy/envoy-integrations-sdk 2.0.1-beta.3 → 2.0.1-beta.4
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/lib/EnvoyAPI.js +2 -1
- package/package.json +1 -1
package/lib/EnvoyAPI.js
CHANGED
|
@@ -547,7 +547,7 @@ class EnvoyAPI {
|
|
|
547
547
|
}
|
|
548
548
|
|
|
549
549
|
static safeRequestsError(error) {
|
|
550
|
-
console.log(`constructing error`);
|
|
550
|
+
console.log(`constructing error from ${JSON}`);
|
|
551
551
|
const safeError = {
|
|
552
552
|
code: error.code ?? error.statusCode,
|
|
553
553
|
message: error.message,
|
|
@@ -557,6 +557,7 @@ class EnvoyAPI {
|
|
|
557
557
|
method: error.request?.method ?? error.options?.method,
|
|
558
558
|
stack: error.stack,
|
|
559
559
|
}
|
|
560
|
+
console.log(`built error`);
|
|
560
561
|
throw safeError;
|
|
561
562
|
}
|
|
562
563
|
}
|