Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

better answer message on ErrNotFound #690

Merged
merged 1 commit into from
Mar 8, 2022

Conversation

nonsense
Copy link
Member

@nonsense nonsense commented Mar 8, 2022

On retrievalmarket.ErrNotFound, answer.Message is "", which results in a rather obscure error message, namely:

retrieval query offer was unavailable:

This PR is adding an answer.Message so that we get the following error message, and make it clear that the mapping between data cid and piece is missing:

retrieval query offer was unavailable: piece info for cid not found (deal has not been added to a piece yet)

@nonsense nonsense force-pushed the nonsense/better-answer-message branch 2 times, most recently from 4e10927 to d17325f Compare March 8, 2022 10:10
@nonsense nonsense force-pushed the nonsense/better-answer-message branch from d17325f to 5e7372b Compare March 8, 2022 13:18
@nonsense nonsense force-pushed the nonsense/better-answer-message branch from 5e7372b to 7c3132e Compare March 8, 2022 13:21
@dirkmc dirkmc merged commit 70dbd2f into master Mar 8, 2022
@dirkmc dirkmc deleted the nonsense/better-answer-message branch March 8, 2022 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants