mirror of https://github.com/docker/docs.git
Fixed bug where error would not show if fetching recommended repos failed
This commit is contained in:
parent
72d4e21a34
commit
95993a7ffb
|
|
@ -56,7 +56,7 @@ module.exports = {
|
||||||
recommended: function () {
|
recommended: function () {
|
||||||
request.get('https://kitematic.com/recommended.json', (error, response, body) => {
|
request.get('https://kitematic.com/recommended.json', (error, response, body) => {
|
||||||
if (error) {
|
if (error) {
|
||||||
repositoryServerActions.recommendedError({error});
|
repositoryServerActions.error({error});
|
||||||
}
|
}
|
||||||
|
|
||||||
let data = JSON.parse(body);
|
let data = JSON.parse(body);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue