Skip to content

Commit 5f4cb4f

Browse files
authored
Merge pull request ipfs#7612 from ipfs/fix/pin-ls-errors
fix: ipfs pin ls - ignore pins that have errors
2 parents dcae18d + 6871e6d commit 5f4cb4f

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)