Skip to content

Commit f5e6634

Browse files
acudnonsense
authored andcommitted
swarm/api: improve not found error msg (#18171)
1 parent 93854bb commit f5e6634

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

swarm/api/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ func (a *API) Get(ctx context.Context, decrypt DecryptFunc, manifestAddr storage
472472
// no entry found
473473
status = http.StatusNotFound
474474
apiGetNotFound.Inc(1)
475-
err = fmt.Errorf("manifest entry for '%s' not found", path)
475+
err = fmt.Errorf("Not found: could not find resource '%s'", path)
476476
log.Trace("manifest entry not found", "key", contentAddr, "path", path)
477477
}
478478
return

0 commit comments

Comments
 (0)