gitInfo error doesnt block page

This commit is contained in:
barisusakli
2016-11-04 20:01:48 +03:00
parent 093dc0702d
commit f30b694545

View File

@@ -81,7 +81,10 @@ function getNodeInfo(callback) {
function getGitInfo(callback) {
function get(cmd, callback) {
exec(cmd, function (err, stdout) {
callback(err, stdout ? stdout.replace(/\n$/, '') : '');
if (err) {
winston.error(err);
}
callback(null, stdout ? stdout.replace(/\n$/, '') : 'no-git-info');
});
}
async.parallel({