aboutsummaryrefslogtreecommitdiffstats
path: root/src/error.rs
blob: 6b369f0f44a2f2e43044632376d20b2eaa8edf9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use regex;
use thiserror::Error;


#[derive(Debug, Error)]
pub enum Error {
    #[error("Unable to parse regex")]
    Regex(#[from] regex::Error),
}


/// Print to standard error with a program-specific prefix.
#[macro_export]
macro_rules! gseprintln {
    ($arg:expr) => ({
        eprintln!("error: {}", $arg);
    })
}