Skip to content

Commit d2c310f

Browse files
committed
fix: ipfs pin ls - return an error when encountering a pin retrieval error
1 parent adb7375 commit d2c310f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/commands/pin.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ func pinLsAll(req *cmds.Request, typeStr string, api coreiface.CoreAPI, emit fun
500500

501501
for p := range pins {
502502
if p.Err() != nil {
503-
continue
503+
return err
504504
}
505505
err = emit(&PinLsOutputWrapper{
506506
PinLsObject: PinLsObject{

0 commit comments

Comments
 (0)