You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
275 B
Rust

#[derive(Debug)]
pub enum ParrotError {
IconPackNotFoundError,
InvalidIconPackError,
IOError(std::io::Error),
}
pub type Result<T> = std::result::Result<T, ParrotError>;
macro_rules! try_io {
($x:expr) => {
$x.map_err(ParrotError::IOError)?
}
}