diff --git a/src/lib.rs b/src/lib.rs index af8a352..a3516a5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -126,6 +126,10 @@ pub fn new_box_error(m: &str) -> Box { Box::new(Error::new(ErrorKind::Other, m)) } +pub fn new_box_ioerror(m: &str) -> Box { + Box::new(Error::new(ErrorKind::Other, m)) +} + pub enum MessageType { INFO, OK, WARN, ERROR, } pub fn print_color(color: Option, is_bold: bool, m: &str) {