@wrongstack/providers 0.260.0 → 0.264.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 +3 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { expectDefined, ProviderError, StreamHangError, safeParse, sanitizeJsonString, WrongStackError, ERROR_CODES } from '@wrongstack/core';
|
|
2
2
|
import { Readable } from 'stream';
|
|
3
|
+
import { toErrorMessage } from '@wrongstack/core/utils';
|
|
3
4
|
import { randomUUID } from 'crypto';
|
|
4
5
|
|
|
5
6
|
var __defProp = Object.defineProperty;
|
|
@@ -657,9 +658,9 @@ var WireAdapter = class {
|
|
|
657
658
|
httpRes = raw;
|
|
658
659
|
} catch (err) {
|
|
659
660
|
if (opts.signal.aborted) throw err;
|
|
660
|
-
throw new ProviderError(
|
|
661
|
+
throw new ProviderError(toErrorMessage(err), 0, true, this.id, {
|
|
661
662
|
cause: err,
|
|
662
|
-
body: { message:
|
|
663
|
+
body: { message: toErrorMessage(err) }
|
|
663
664
|
});
|
|
664
665
|
}
|
|
665
666
|
if (!httpRes.ok) {
|