Error handling for bad git data in updatenotification

Update CHANGELOG
This commit is contained in:
shbatm
2019-01-04 09:23:10 -06:00
parent 6914465e3d
commit a257b15f86
2 changed files with 5 additions and 2 deletions

View File

@@ -65,8 +65,10 @@ module.exports = NodeHelper.create({
data.module = sg.module;
if (!err) {
sg.git.log({"-1": null}, function(err, data2) {
data.hash = data2.latest.hash;
self.sendSocketNotification("STATUS", data);
if (!err) {
data.hash = data2.latest.hash;
self.sendSocketNotification("STATUS", data);
}
});
}
});