From e521f229ddd7961bc5357f9828f0fb3e13c1c46f Mon Sep 17 00:00:00 2001 From: Gleb Bahmutov Date: Wed, 13 Sep 2017 17:09:36 -0400 Subject: [PATCH] fix: swallow release arrow, close #25 --- src/human-format.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/human-format.js b/src/human-format.js index 2a45148..a7c1aeb 100644 --- a/src/human-format.js +++ b/src/human-format.js @@ -164,8 +164,12 @@ function toHumanFormat (releases) { // debug(release); if (release) { - r.release = release.body ? cleanReleaseNotesGitHub(release.body) - : cleanReleaseNotesGitLab(release.commit) + try { + r.release = release.body ? cleanReleaseNotesGitHub(release.body) + : cleanReleaseNotesGitLab(release.commit) + } catch (e) { + // ignore for now + } } }) }