aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElad <theman@elad.im>2018-11-26 19:53:15 +0800
committerAnton Evangelatov <anton.evangelatov@gmail.com>2018-11-26 19:53:15 +0800
commitf5e6634fd2fd2be5520c77edb7a5cd375eb28fd4 (patch)
tree1a31528264f8257db08eced51c806f74b5b6752f
parent93854bbad4fb819375463d04cf6b7e66b7f272f7 (diff)
downloaddexon-f5e6634fd2fd2be5520c77edb7a5cd375eb28fd4.tar.gz
dexon-f5e6634fd2fd2be5520c77edb7a5cd375eb28fd4.tar.zst
dexon-f5e6634fd2fd2be5520c77edb7a5cd375eb28fd4.zip
swarm/api: improve not found error msg (#18171)
-rw-r--r--swarm/api/api.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/swarm/api/api.go b/swarm/api/api.go
index 7bb631967..099a46939 100644
--- a/swarm/api/api.go
+++ b/swarm/api/api.go
@@ -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