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

@ -18,6 +18,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
### Fixed
- Fixed temperature displays in currentweather and weatherforecast modules [#1503](https://github.com/MichMich/MagicMirror/issues/1503).
- Fixed unhandled error on bad git data in updatenotiifcation module [#1285](https://github.com/MichMich/MagicMirror/issues/1285).
## [2.6.0] - 2019-01-01

View File

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