shelving 1.167.1 → 1.167.2
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/api/Endpoint.js +1 -1
- package/package.json +1 -1
package/api/Endpoint.js
CHANGED
|
@@ -90,7 +90,7 @@ export class Endpoint {
|
|
|
90
90
|
const content = await getResponseContent(response, caller);
|
|
91
91
|
// Throw `ResponseError` if the API returns status outside the 200-299 range.
|
|
92
92
|
if (!ok)
|
|
93
|
-
throw new ResponseError(getMessage(content) ?? `Error ${status}
|
|
93
|
+
throw new ResponseError(getMessage(content) ?? `Error ${status}`, { cause: Response, caller });
|
|
94
94
|
// Validate the success response.
|
|
95
95
|
return getValid(content, this.result, ResponseError, caller);
|
|
96
96
|
}
|