Files
clash-verge-rev/crates/clash-verge-subscription/src/error.rs
T
Tunglies 0605236489 refactor(subscription): extract response decoding
Keep HTTP and persistence in the app. Decode response metadata and framing in the crate, and fall back when the server filename is invalid.
2026-12-02 02:10:09 +08:00

8 lines
265 B
Rust

#[derive(Debug, thiserror::Error)]
pub enum SubscriptionError {
#[error("the remote profile data is invalid yaml")]
InvalidYaml(#[source] serde_yaml_ng::Error),
#[error("profile does not contain `proxies` or `proxy-providers`")]
MissingProviders,
}