Skip to content

Commit 6871e6d

Browse files
committed
fix: ipfs pin ls - return an error when encountering a pin retrieval error
1 parent b15bcf0 commit 6871e6d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

core/commands/pin.go

+3
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,9 @@ func pinLsAll(req *cmds.Request, typeStr string, api coreiface.CoreAPI, emit fun
499499
}
500500

501501
for p := range pins {
502+
if p.Err() != nil {
503+
return err
504+
}
502505
err = emit(&PinLsOutputWrapper{
503506
PinLsObject: PinLsObject{
504507
Type: p.Type(),

0 commit comments

Comments
 (0)