Skip to content

Commit

Permalink
Merge pull request #7612 from ipfs/fix/pin-ls-errors
Browse files Browse the repository at this point in the history
fix: ipfs pin ls - ignore pins that have errors
  • Loading branch information
aschmahmann committed Aug 25, 2020
2 parents dcae18d + 6871e6d commit 5f4cb4f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/commands/pin.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 5f4cb4f

Please sign in to comment.