@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/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "typings": "build/main/index.d.ts",
7
7
  "module": "build/module/index.js"
8
8
  },
9
- "version": "1.3.1-1586",
9
+ "version": "1.3.1-1603",
10
10
  "description": "",
11
11
  "main": "build/main/index.js",
12
12
  "module": "build/module/index.js",
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 Error('Worker resources exceeded.');
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;