Surface request stream errors in the resolver (#107)

Closes https://github.com/astral-sh/puffin/issues/105.
This commit is contained in:
Charlie Marsh 2023-10-16 13:26:46 -04:00 committed by GitHub
parent 7e8ffeb2df
commit bae52d5edd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 72 additions and 49 deletions

View file

@ -10,12 +10,18 @@ pub enum ResolveError {
#[error("Failed to find a version of {0} that satisfies the requirement")]
NotFound(Requirement),
#[error("The request stream terminated unexpectedly")]
StreamTermination,
#[error(transparent)]
Client(#[from] puffin_client::PypiClientError),
#[error(transparent)]
TrySend(#[from] futures::channel::mpsc::SendError),
#[error(transparent)]
Join(#[from] tokio::task::JoinError),
#[error(transparent)]
PubGrub(#[from] pubgrub::error::PubGrubError<PubGrubPackage, PubGrubVersion>),
}