Skip to content

Commit

Permalink
fix: ipfs pin ls - return an error when encountering a pin retrieval …
Browse files Browse the repository at this point in the history
…error
  • Loading branch information
aschmahmann committed Aug 25, 2020
1 parent b15bcf0 commit 6871e6d
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 6871e6d

Please sign in to comment.