mirror of
https://github.com/tealdeer-rs/tealdeer.git
synced 2026-08-26 10:04:17 +02:00
13 lines
300 B
Rust
13 lines
300 B
Rust
use curl::Error as CurlError;
|
|
|
|
#[derive(Debug)]
|
|
pub enum TealdeerError {
|
|
CacheError(String),
|
|
UpdateError(String),
|
|
}
|
|
|
|
impl From<CurlError> for TealdeerError {
|
|
fn from(err: CurlError) -> TealdeerError {
|
|
TealdeerError::UpdateError(format!("Curl error: {}", err.to_string()))
|
|
}
|
|
}
|