Merge pull request #3188 from mtanda/template_error_report

Fix templating error dialog for Prometheus
This commit is contained in:
Torkel Ödegaard 2015-11-10 11:21:26 +01:00
commit 2371dcf694

View File

@ -106,6 +106,11 @@ function (angular, _, config) {
});
}
// for Prometheus
if (!err.data.message && _.isString(err.data.error)) {
err.data.message = err.data.error;
}
throw err;
});
};