jmserver/src/ipfs/error.rs
2022-01-05 23:46:19 +01:00

11 lines
229 B
Rust

use thiserror::Error;
use url::ParseError;
#[derive(Error, Debug)]
pub enum IPFSError {
#[error("Reqwest error: {0}")]
Reqwest(#[from] reqwest::Error),
#[error("URL parse error: {0}")]
URL(#[from] ParseError),
}