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
@@ -59,7 +59,7 @@ func GetDashboardSnapshot(c *middleware.Context) {
|
||||
|
||||
// expired snapshots should also be removed from db
|
||||
if snapshot.Expires.Before(time.Now()) {
|
||||
c.JsonApiErr(404, "Snapshot not found", err)
|
||||
c.JsonApiErr(404, "Dashboard snapshot not found", err)
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user