mirror of
https://github.com/grafana/grafana.git
synced 2025-08-02 03:12:13 +08:00
provisioning: adds error handling
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user