Skip to content

Commit

Permalink
Return the copy error in the case of non-streaming http download
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Mar 29, 2021
1 parent 020a020 commit 0781870
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/eosclient/eosgrpc/eos_http/eoshttp.go
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ func (c *EosHttpClient) GETFile(ctx context.Context, remoteuser, uid, gid, urlpa
if stream != nil {
// Streaming versus localfile. If we have bene given a dest stream then copy the body into it
_, err = io.Copy(stream, resp.Body)
return nil, nil
return err, nil
}

// If we have not been given a stream to write into then return our stream to read from
Expand Down

0 comments on commit 0781870

Please sign in to comment.