@blazingagents/sdk 0.50.0 → 0.51.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/errors.js +1 -1
- package/dist/relay.js +1 -1
- package/package.json +1 -1
package/dist/errors.js
CHANGED
|
@@ -31,7 +31,7 @@ export class BlazingAgentsError extends Error {
|
|
|
31
31
|
* @param options - Configuration for this operation.
|
|
32
32
|
*/
|
|
33
33
|
constructor({ code, details, headers, message, param, requestId, responseBody, responseBodyTruncated, status, }, options) {
|
|
34
|
-
super(
|
|
34
|
+
super(message, options);
|
|
35
35
|
this.name = BLAZING_AGENTS_ERROR_NAME;
|
|
36
36
|
this.code = code;
|
|
37
37
|
this.details = details;
|
package/dist/relay.js
CHANGED
|
@@ -149,7 +149,7 @@ function safeErrorResponse(error) {
|
|
|
149
149
|
if (requestId) {
|
|
150
150
|
headers.set("x-request-id", requestId);
|
|
151
151
|
}
|
|
152
|
-
return errorResponse(status, error.code, error.message
|
|
152
|
+
return errorResponse(status, error.code, error.message, headers);
|
|
153
153
|
}
|
|
154
154
|
return errorResponse(500, "internal_error", "Request failed.");
|
|
155
155
|
}
|