Skip to content

Commit

Permalink
add peer id in err msg (#339)
Browse files Browse the repository at this point in the history
Co-authored-by: Rungen Zhu <[email protected]>
  • Loading branch information
cloverzrg and Rungen Zhu authored Oct 9, 2023
1 parent 3e0c042 commit b7d6cd2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/dl/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down
2 changes: 1 addition & 1 deletion app/internal/dliter/iter.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b7d6cd2

Please sign in to comment.