Forráskód Böngészése

swarm/api: improve not found error msg (#18171)

Elad 7 éve
szülő
commit
f5e6634fd2
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      swarm/api/api.go

+ 1 - 1
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