Skip to content

Commit f52116a

Browse files
committed
Error on network failure
1 parent f247bea commit f52116a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/util/postinstall.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ getConfigFromEnv()
8686
return undefined;
8787
}
8888
return response.json().then(json => ({ ...json, apiKey }));
89+
}, (e) => {
90+
console.error(`Unable to fetch Firebase config\n${e.cause}`);
91+
return undefined;
8992
});
9093
})
9194
.then(config => {

0 commit comments

Comments
 (0)