mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-05 12:01:17 +01:00
gitInfo error doesnt block page
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user