tealdeer/src/error.rs
2016-08-01 12:20:41 +02:00

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()))
}
}