• Lewis Marshall's avatar
    swarm/api: fix error reporting in api.Resolve (#14464) · b0d0fafd
    Lewis Marshall authored
    Previously, resolve errors were being swallowed and the returned error
    was a generic "not a content hash" which isn't helpful.
    
    This updates the Resolve function to fail fast rather than only
    returning an error at the end, and also adds test coverage.
    b0d0fafd
api.go 8.58 KB