provisioning: adds error handling

pull/11398/head
bergquist 7 years ago
parent f619dd579e
commit bcbe7a1c55
  1. 4
      pkg/api/dashboard.go

@ -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…
Cancel
Save