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

This commit is contained in:
Adin Schmahmann 2020-08-20 15:36:43 -04:00
parent b15bcf0d9c
commit 6871e6d056

View File

@ -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(),