diff options
Diffstat (limited to 'lib/xixanta/src/errors.rs')
| -rw-r--r-- | lib/xixanta/src/errors.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/xixanta/src/errors.rs b/lib/xixanta/src/errors.rs index d9a12cd..6c99f57 100644 --- a/lib/xixanta/src/errors.rs +++ b/lib/xixanta/src/errors.rs @@ -1,10 +1,12 @@ use std::fmt; // TODO: global error +// TODO: more errors, the `parse` thing is a hack! #[derive(Debug, Clone, PartialEq)] pub struct ParseError { pub line: usize, pub message: String, + pub parse: bool, } impl std::error::Error for ParseError {} @@ -15,6 +17,7 @@ impl From<std::io::Error> for ParseError { ParseError { line: 0, message: err.to_string(), + parse: true, } } } |
