@taskcluster/client 111.0.0 → 112.0.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/client.js +3 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taskcluster/client",
3
- "version": "111.0.0",
3
+ "version": "112.0.0",
4
4
  "author": "Jonas Finnemann Jensen <jopsen@gmail.com>",
5
5
  "description": "Client for interfacing taskcluster components",
6
6
  "license": "MPL-2.0",
package/src/client.js CHANGED
@@ -428,6 +428,9 @@ export const createClient = (reference, name) => {
428
428
  err.body = res.body;
429
429
  err.code = res.body.code || 'UnknownError';
430
430
  err.statusCode = res.statusCode;
431
+ if (res.statusCode === 503 && err.code === 'ServiceUnavailable') {
432
+ err.overCapacity = true;
433
+ }
431
434
 
432
435
  // Decide if we should retry or just throw
433
436
  if (