swarm/api: improve not found error msg

This commit is contained in:
Elad Nachmias 2018-11-24 20:48:56 +05:30
parent 2a113f6d72
commit ea7093af3a

View file

@ -472,7 +472,7 @@ func (a *API) Get(ctx context.Context, decrypt DecryptFunc, manifestAddr storage
// no entry found // no entry found
status = http.StatusNotFound status = http.StatusNotFound
apiGetNotFound.Inc(1) 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) log.Trace("manifest entry not found", "key", contentAddr, "path", path)
} }
return return