mirror of
https://github.com/grafana/grafana.git
synced 2024-11-26 02:40:26 -06:00
Merge pull request #3188 from mtanda/template_error_report
Fix templating error dialog for Prometheus
This commit is contained in:
commit
2371dcf694
@ -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;
|
||||
});
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user