Maraiah/src/durandal/err.rs

11 lines
267 B
Rust
Raw Normal View History

2018-12-11 00:08:23 -08:00
//! Error handling.
2018-12-13 01:04:09 -08:00
pub use failure::{Error, Fail, format_err};
2018-12-11 00:08:23 -08:00
pub type ResultS<T> = Result<T, Error>;
pub fn err_msg<T>(s: &'static str) -> ResultS<T> {Err(failure::err_msg(s))}
2018-12-11 15:50:23 -08:00
pub fn err_msg_v (s: &'static str) -> Error { failure::err_msg(s) }
2018-12-11 00:08:23 -08:00
// EOF