1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
use fluent::FluentError; use fluent_syntax::parser::ParserError; use thiserror::Error; /// Result. pub type Result<T, E = Error> = std::result::Result<T, E>; /// Error. #[derive(Error, Debug)] pub enum Error { #[error("parse resource ({:?})", _0)] ParseResource(Vec<ParserError>), #[error("add resource ({:?})", _0)] AddResource(Vec<FluentError>), }