diff --git a/cmd/magneticod/bittorrent/metadata/leech.go b/cmd/magneticod/bittorrent/metadata/leech.go index 8b3c5bb..fad486a 100644 --- a/cmd/magneticod/bittorrent/metadata/leech.go +++ b/cmd/magneticod/bittorrent/metadata/leech.go @@ -335,7 +335,7 @@ func (l *Leech) Do(deadline time.Time) { rExtDict := new(extDict) err = bencode.NewDecoder(rMessageBuf).Decode(rExtDict) if err != nil { - zap.L().Warn("Couldn't decode extension message in the loop!", zap.Error(err)) + l.OnError(errors.Wrap(err, "could not decode ext msg in the loop")) return }