Commit 6871e6d0 authored by Adin Schmahmann's avatar Adin Schmahmann

fix: ipfs pin ls - return an error when encountering a pin retrieval error

parent b15bcf0d
......@@ -499,6 +499,9 @@ func pinLsAll(req *cmds.Request, typeStr string, api coreiface.CoreAPI, emit fun
}
for p := range pins {
if p.Err() != nil {
return err
}
err = emit(&PinLsOutputWrapper{
PinLsObject: PinLsObject{
Type: p.Type(),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment