Improve error message when piece fails to be completed

Happens occasionally on some servers, can't work out why.
This commit is contained in:
Matt Joiner 2016-02-16 23:35:19 +11:00
parent a6759b321a
commit be6052912f
1 changed files with 1 additions and 1 deletions

View File

@ -2447,7 +2447,7 @@ func (me *Client) pieceHashed(t *torrent, piece int, correct bool) {
if correct {
err := t.data.PieceCompleted(int(piece))
if err != nil {
log.Printf("error completing piece: %s", err)
log.Printf("%T: error completing piece %d: %s", t.data, piece, err)
correct = false
}
} else if len(touchers) != 0 {