Handle callback errors

This commit is contained in:
Mathias Schreck
2016-08-16 19:46:59 +02:00
parent d43c19c173
commit ce9ee62fa0
64 changed files with 359 additions and 23 deletions

View File

@@ -306,6 +306,9 @@ define('admin/general/dashboard', ['semver', 'Chart'], function(semver, Chart) {
units: units || 'hours',
until: until
}, function (err, data) {
if (err) {
return app.alertError(err.message);
}
if (JSON.stringify(graphData.traffic) === JSON.stringify(data)) {
return;
}