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
@@ -57,7 +57,7 @@ func GetDashboardSnapshot(query *m.GetDashboardSnapshotQuery) error {
|
||||
if err != nil {
|
||||
return err
|
||||
} else if has == false {
|
||||
return m.ErrNotFound
|
||||
return m.ErrDashboardSnapshotNotFound
|
||||
}
|
||||
|
||||
query.Result = &snapshot
|
||||
|
||||
Reference in New Issue
Block a user