[Trunk|Explore]: Fix error logs in Home Page.

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-portal/trunk@54850 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
konstantina.galouni 2019-02-18 14:36:04 +00:00
parent eb7aee74c8
commit 8bf9cc6350
1 changed files with 18 additions and 7 deletions

View File

@ -104,7 +104,11 @@ public subPub;public subData;public subProjects;public subOrg; public subDataPr;
// if(this.showDataProviders) { // if(this.showDataProviders) {
// this.fetchDataproviders.getResultsForHome(this.numResults, this.properties); // this.fetchDataproviders.getResultsForHome(this.numResults, this.properties);
// } // }
}); },
error => {
this.handleError("Error getting community information", error);
}
);
} }
}); });
@ -144,7 +148,8 @@ public subPub;public subData;public subProjects;public subOrg; public subDataPr;
} }
}, },
err => { err => {
console.log(err); //console.log(err);
this.handleError("Error getting number of publications", err);
} }
); );
} }
@ -156,7 +161,8 @@ public subPub;public subData;public subProjects;public subOrg; public subDataPr;
} }
}, },
err => { err => {
console.log(err); //console.log(err);
this.handleError("Error getting number of research data", err);
} }
); );
} }
@ -174,7 +180,8 @@ public subPub;public subData;public subProjects;public subOrg; public subDataPr;
}, },
err => { err => {
console.log(err); //console.log(err);
this.handleError("Error getting 'funder' field results of projects", err);
}); });
} }
if(this.showDataProviders){ if(this.showDataProviders){
@ -186,10 +193,14 @@ public subPub;public subData;public subProjects;public subOrg; public subDataPr;
}, },
err => { err => {
console.log(err); //console.log(err);
this.handleError("Error getting number of content providers", err);
} }
); );
} }
} }
private handleError(message: string, error) {
console.error("Home Page: "+message, error);
}
} }