mirror of
https://github.com/grafana/grafana.git
synced 2025-08-03 06:12:20 +08:00
clearer errors
"Not found" should only be for http path/method not found (404) if it's about specific resources, we should be explicit for clarity
This commit is contained in:

committed by
Torkel Ödegaard

parent
f6ad386ba7
commit
66ba19b7ba
@ -11,6 +11,7 @@ import (
|
||||
// Typed errors
|
||||
var (
|
||||
ErrDashboardNotFound = errors.New("Dashboard not found")
|
||||
ErrDashboardSnapshotNotFound = errors.New("Dashboard snapshot not found")
|
||||
ErrDashboardWithSameNameExists = errors.New("A dashboard with the same name already exists")
|
||||
ErrDashboardVersionMismatch = errors.New("The dashboard has been changed by someone else")
|
||||
)
|
||||
|
Reference in New Issue
Block a user