From 26003da10c11407d7d2dff91a259cc2d90520363 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miko=C5=82aj=20Pich?= Date: Tue, 28 May 2019 14:18:27 +0200 Subject: [PATCH] Handle newtork errors in dev builds --- src/components/HomeDownloadDev.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/HomeDownloadDev.vue b/src/components/HomeDownloadDev.vue index 90aa91d..f8610e9 100644 --- a/src/components/HomeDownloadDev.vue +++ b/src/components/HomeDownloadDev.vue @@ -53,7 +53,7 @@ const response = await this.$http.get('https://api.github.com/repos/wulkanowy/wulkanowy/pulls?state=open'); return (await Promise.all(response.body.map(async (release) => { const redirectorUrl = `https://bitrise-redirector.herokuapp.com/v0.1/apps/f841f20d8f8b1dc8/builds/${release.head.ref}/artifacts/0/info`; - const build = await this.$http.get(redirectorUrl); + const build = await this.$http.get(redirectorUrl).catch(error => error); return { title: release.title, number: release.number,