mirror of
https://github.com/grafana/grafana.git
synced 2025-08-03 02:42:22 +08:00
Merge pull request #10694 from grafana/7883_backend
backend for new url structure.
This commit is contained in:
@ -209,7 +209,7 @@ func PostDashboard(c *middleware.Context, cmd m.SaveDashboardCommand) Response {
|
||||
}
|
||||
|
||||
if err != nil {
|
||||
if err == m.ErrDashboardWithSameNameExists {
|
||||
if err == m.ErrDashboardWithSameUIDExists {
|
||||
return Json(412, util.DynMap{"status": "name-exists", "message": err.Error()})
|
||||
}
|
||||
if err == m.ErrDashboardVersionMismatch {
|
||||
|
Reference in New Issue
Block a user