Add error type

This commit is contained in:
dalance 2019-09-18 17:28:07 +09:00
parent cdedec4d3f
commit 917e4bac5e

View File

@ -18,6 +18,12 @@ pub enum ErrorKind {
Parse,
#[fail(display = "Preprocess error")]
Preprocess,
#[fail(display = "Define argument not found: {}", _0)]
DefineArgNotFound(String),
#[fail(display = "Define text not found: {}", _0)]
DefineTextNotFound(String),
#[fail(display = "Define text not found: {}", _0)]
DefineNotFound(String),
}
// -----------------------------------------------------------------------------