From be8473c5d15edba9c164cf8b12dbb8148b7a2e17 Mon Sep 17 00:00:00 2001
From: Rhys Arkins <rhys@arkins.net>
Date: Thu, 8 Nov 2018 07:29:14 +0100
Subject: [PATCH] refactor: log err with label deletion failure

---
 lib/platform/github/index.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/platform/github/index.js b/lib/platform/github/index.js
index 5e7963b74d..322105cfbb 100644
--- a/lib/platform/github/index.js
+++ b/lib/platform/github/index.js
@@ -741,7 +741,7 @@ async function deleteLabel(issueNo, label) {
   try {
     await get.delete(`repos/${repository}/issues/${issueNo}/labels/${label}`);
   } catch (err) /* istanbul ignore next */ {
-    logger.warn({ issueNo, label }, 'Failed to delete label');
+    logger.warn({ err, issueNo, label }, 'Failed to delete label');
   }
 }
 
-- 
GitLab