Skip to content

Commit 83d94d2

Browse files
authored
fix: correctly return pin ls errors
1 parent cb7b147 commit 83d94d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/commands/pin/pin.go

+1-1
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

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

0 commit comments

Comments
 (0)