Fix stmgr.GetMinerPeerID

This commit is contained in:
Łukasz Magiera
2019-09-17 10:34:41 +02:00
parent 5ea1459275
commit 8f84aa7097
3 changed files with 9 additions and 8 deletions
+2 -1
View File
@@ -3,6 +3,7 @@ package client
import (
"context"
"errors"
"golang.org/x/xerrors"
"os"
"github.com/ipfs/go-blockservice"
@@ -258,7 +259,7 @@ func (a *API) ClientRetrieve(ctx context.Context, order api.RetrievalOrder, path
err = a.Retrieval.RetrieveUnixfs(ctx, order.Root, order.Size, order.Total, order.MinerPeerID, order.Client, order.Miner, outFile)
if err != nil {
_ = outFile.Close()
return err
return xerrors.Errorf("RetrieveUnixfs: %w", err)
}
return outFile.Close()