feat(arr): add zip dep and provider config error
This commit is contained in:
@@ -19,10 +19,17 @@ translate-command = []
|
||||
|
||||
[dependencies]
|
||||
arr-core.workspace = true
|
||||
arr-parse.workspace = true
|
||||
reqwest.workspace = true
|
||||
serde.workspace = true
|
||||
serde_json.workspace = true
|
||||
thiserror.workspace = true
|
||||
tracing.workspace = true
|
||||
zip.workspace = true
|
||||
|
||||
[dev-dependencies]
|
||||
tokio = { workspace = true, features = ["macros", "rt-multi-thread"] }
|
||||
wiremock.workspace = true
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
@@ -74,6 +74,17 @@ pub enum Error {
|
||||
#[source]
|
||||
source: std::io::Error,
|
||||
},
|
||||
|
||||
/// The provider could not be constructed: a bad base URL, or its HTTP
|
||||
/// client failed to build. Always a caller bug — a hardcoded URL or a
|
||||
/// test override — never a fact about the live service.
|
||||
#[error("{provider} could not be configured: {detail}")]
|
||||
Config {
|
||||
/// The provider being constructed.
|
||||
provider: ProviderId,
|
||||
/// What went wrong, short enough to log.
|
||||
detail: String,
|
||||
},
|
||||
}
|
||||
|
||||
impl Error {
|
||||
|
||||
Reference in New Issue
Block a user