From b7d6cd285dbc1ab491c1fac06ba078e1a1908f57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B1=E6=B6=A6=E6=A0=B9?= Date: Sun, 8 Oct 2023 21:48:07 -0500 Subject: [PATCH] add peer id in err msg (#339) Co-authored-by: Rungen Zhu --- app/dl/serve.go | 2 +- app/internal/dliter/iter.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/dl/serve.go b/app/dl/serve.go index 21569db7e1..a575a946c8 100644 --- a/app/dl/serve.go +++ b/app/dl/serve.go @@ -80,7 +80,7 @@ func serve(ctx context.Context, } if iter.Value().Msg.GetID() != message { - return fmt.Errorf("msg may be deleted, id: %d", message) + return fmt.Errorf("the message %d/%d may be deleted", p.ID(), message) } item, err = convItem(iter.Value()) diff --git a/app/internal/dliter/iter.go b/app/internal/dliter/iter.go index 35caca9973..9d408bc6fe 100644 --- a/app/internal/dliter/iter.go +++ b/app/internal/dliter/iter.go @@ -105,7 +105,7 @@ func (iter *Iter) item(ctx context.Context, i, j int) (*downloader.Item, error) // check again to avoid deleted message if message.ID != msg { - return nil, fmt.Errorf("msg may be deleted, id: %d", msg) + return nil, fmt.Errorf("the message %d/%d may be deleted", id, msg) } item, ok := tmedia.GetMedia(message)