HTTP API: fix for POST /api/dashboards/db returned 200 ok when dashboard was not found, Fixes #1929

This commit is contained in:
Torkel Ödegaard
2015-05-04 07:46:53 +02:00
parent 697529d0e8
commit 73ee8a5985
4 changed files with 28 additions and 3 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ import (
// Typed errors
var (
ErrDashboardNotFound = errors.New("Account not found")
ErrDashboardNotFound = errors.New("Dashboard not found")
ErrDashboardWithSameNameExists = errors.New("A dashboard with the same name already exists")
ErrDashboardVersionMismatch = errors.New("The dashboard has been changed by someone else")
)