mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -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;
|
throw err;
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user