From ffc04a0203eefd3cfe9a42093463fba5cdee91c7 Mon Sep 17 00:00:00 2001 From: Rhys Arkins <rhys@arkins.net> Date: Mon, 24 Sep 2018 20:02:57 +0200 Subject: [PATCH] fix(github): catch 409 empty --- lib/platform/github/storage.js | 3 +++ lib/workers/repository/result.js | 1 + 2 files changed, 4 insertions(+) diff --git a/lib/platform/github/storage.js b/lib/platform/github/storage.js index 1948a402c2..0a9b50b15f 100644 --- a/lib/platform/github/storage.js +++ b/lib/platform/github/storage.js @@ -361,6 +361,9 @@ class Storage { if (err.statusCode === 404) { throw new Error('repository-changed'); } + if (err.statusCode === 409) { + throw new Error('empty'); + } throw err; } } diff --git a/lib/workers/repository/result.js b/lib/workers/repository/result.js index a0712fb070..b0e29875dd 100644 --- a/lib/workers/repository/result.js +++ b/lib/workers/repository/result.js @@ -13,6 +13,7 @@ function processResult(config, res) { 'not-found', 'renamed', 'uninitiated', + 'empty', ]; let status; // istanbul ignore next -- GitLab