From 917e4bac5ecba75305072ec7a6d8d1bb4e5e5d15 Mon Sep 17 00:00:00 2001 From: dalance Date: Wed, 18 Sep 2019 17:28:07 +0900 Subject: [PATCH] Add error type --- sv-parser-error/src/lib.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sv-parser-error/src/lib.rs b/sv-parser-error/src/lib.rs index 748a4c6..1cbe737 100644 --- a/sv-parser-error/src/lib.rs +++ b/sv-parser-error/src/lib.rs @@ -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), } // -----------------------------------------------------------------------------