fix: ipfs pin ls - return an error when encountering a pin retrieval error
Adin Schmahmann committed
Aug 20, 2020 at 15:36 UTC
6871e6d056c5d50c8071ec29db1b67a5bbcf15dc
1 file changed
+3
core/commands/pin.go
+3
@@ -499,6 +499,9 @@ func pinLsAll(req *cmds.Request, typeStr string, api coreiface.CoreAPI, emit fun
499
}
500
501
for p := range pins {
502
+ if p.Err() != nil {
503
+ return err
504
+ }
505
err = emit(&PinLsOutputWrapper{
506
PinLsObject: PinLsObject{
507
Type: p.Type(),