Check error case for skip existing (#8631)

This commit is contained in:
konsti 2024-10-31 16:37:30 +01:00 committed by GitHub
parent 082259493e
commit f5a7d70642
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 117 additions and 45 deletions

View file

@ -59,7 +59,10 @@ pub enum PublishError {
MixedCredentials(String),
#[error("Failed to query check URL")]
CheckUrlIndex(#[source] uv_client::Error),
#[error("Local file and index file for {filename} do not match. Local: {hash_algorithm}={local}, Remote: {hash_algorithm}={remote}")]
#[error(
"Local file and index file do not match for {filename}. \
Local: {hash_algorithm}={local}, Remote: {hash_algorithm}={remote}"
)]
HashMismatch {
filename: Box<DistFilename>,
hash_algorithm: HashAlgorithm,