Skip to content

Commit

Permalink
swarm/api: improve not found error msg (#18171)
Browse files Browse the repository at this point in the history
  • Loading branch information
acud authored and nonsense committed Nov 26, 2018
1 parent 93854bb commit f5e6634
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion swarm/api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ func (a *API) Get(ctx context.Context, decrypt DecryptFunc, manifestAddr storage
// no entry found
status = http.StatusNotFound
apiGetNotFound.Inc(1)
err = fmt.Errorf("manifest entry for '%s' not found", path)
err = fmt.Errorf("Not found: could not find resource '%s'", path)
log.Trace("manifest entry not found", "key", contentAddr, "path", path)
}
return
Expand Down

0 comments on commit f5e6634

Please sign in to comment.