mirror of https://github.com/docker/docs.git
Fixed bug where failing to fetch recommended error list would not be handled correctly
This commit is contained in:
parent
f7f7ac977a
commit
1eced58193
|
@ -57,6 +57,12 @@ module.exports = {
|
|||
request.get('https://kitematic.com/recommended.json', (error, response, body) => {
|
||||
if (error) {
|
||||
repositoryServerActions.error({error});
|
||||
return;
|
||||
}
|
||||
|
||||
if (response.statusCode !== 200) {
|
||||
repositoryServerActions.error({error: new Error('Could not fetch recommended repo list. Please try again later.')});
|
||||
return;
|
||||
}
|
||||
|
||||
let data = JSON.parse(body);
|
||||
|
|
Loading…
Reference in New Issue