Handle newtork errors in dev builds

This commit is contained in:
Mikołaj Pich 2019-05-28 14:18:27 +02:00
parent 761b9f58c4
commit 26003da10c
No known key found for this signature in database
GPG key ID: F62B26E36D4C4BAA

View file

@ -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,