error 404 defaults to "bad URI"

This commit is contained in:
Jörn-Michael Miehe 2025-06-24 16:31:31 +00:00
parent ece742a1e3
commit 97e9e41117

View file

@ -25,7 +25,7 @@ fn find_cause(
} else if let Some(share_id) = share_id {
ClientError::InvalidParameter(sharry::Parameter::ShareID(share_id.to_owned()))
} else {
ClientError::unknown(error)
ClientError::InvalidParameter(sharry::Parameter::Uri(uri.to_string()))
}
}
ureq::Error::Io(error) => {