fix: correctly return pin ls errors

This commit is contained in:
Adin Schmahmann 2021-02-25 15:56:18 -05:00 committed by GitHub
parent cb7b147e5a
commit 83d94d26d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -500,7 +500,7 @@ func pinLsAll(req *cmds.Request, typeStr string, api coreiface.CoreAPI, emit fun
}
for p := range pins {
if p.Err() != nil {
if err := p.Err(); err != nil {
return err
}
err = emit(&PinLsOutputWrapper{