@vrplatform/api 1.3.1-1586 → 1.3.1-1603
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/build/main/error.js +4 -1
- package/build/main/error.js.map +1 -1
- package/build/main/generated/v1.d.ts +1299 -379
- package/build/main/generated/v1.js.map +1 -1
- package/build/module/error.js +4 -1
- package/build/module/error.js.map +1 -1
- package/build/module/generated/v1.d.ts +1299 -379
- package/build/module/generated/v1.js.map +1 -1
- package/package.json +1 -1
- package/src/error.ts +4 -1
- package/src/generated/v1.ts +1299 -379
package/package.json
CHANGED
package/src/error.ts
CHANGED
|
@@ -51,7 +51,10 @@ export function throwIfError<T extends FetchResponse<any, any, any>>(
|
|
|
51
51
|
if (response instanceof Promise) {
|
|
52
52
|
return response.then((response) => {
|
|
53
53
|
if (response.response.status === 503) {
|
|
54
|
-
throw new
|
|
54
|
+
throw new ApiClientError({
|
|
55
|
+
code: 'SERVICE_UNAVAILABLE',
|
|
56
|
+
message: 'Worker resources exceeded.',
|
|
57
|
+
});
|
|
55
58
|
}
|
|
56
59
|
|
|
57
60
|
const error: E = response.error;
|