mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
provisioning: adds error handling
This commit is contained in:
parent
f619dd579e
commit
bcbe7a1c55
@ -104,6 +104,10 @@ func GetDashboard(c *m.ReqContext) Response {
|
||||
|
||||
dpQuery := &m.GetProvisionedDashboardByDashboardId{DashboardId: dash.Id}
|
||||
err = bus.Dispatch(dpQuery)
|
||||
if err != nil {
|
||||
return Error(500, "Error while checking if dashboard is provisioned", err)
|
||||
}
|
||||
|
||||
if dpQuery.Result != nil {
|
||||
meta.CanEdit = true
|
||||
meta.Provisioned = true
|
||||
|
Loading…
Reference in New Issue
Block a user