mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-05 00:08:06 +08:00
fix: ipfs pin ls - return an error when encountering a pin retrieval error
This commit is contained in:
parent
b15bcf0d9c
commit
6871e6d056
@ -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(),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user