summaryrefslogtreecommitdiff
path: root/src/error.rs
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2020-12-15 13:42:59 +0000
committerDaniel Silverstone <dsilvers@digital-scurf.org>2020-12-18 17:50:19 +0000
commit37e9b82bbb7011b4b3d02f47921e5be3f59616da (patch)
tree6debcae2808c469792f246fbe134a1834c1da5d1 /src/error.rs
parentd5d02d4296ed6cb07bb3e6f4438752c7b877bcaa (diff)
downloadsubplot-37e9b82bbb7011b4b3d02f47921e5be3f59616da.tar.gz
bindings: Use/amend the typemap when parsing simple patterns
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Diffstat (limited to 'src/error.rs')
-rw-r--r--src/error.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/error.rs b/src/error.rs
index cea6ec6..7eaf60c 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -18,6 +18,10 @@ pub enum SubplotError {
#[error("simple pattern kind {0} is unknown")]
UnknownSimplePatternKind(String),
+ /// The simple pattern and the type map disagree over the kind of a match
+ #[error("simple pattern kind for {0} disagrees with the type map")]
+ SimplePatternKindMismatch(String),
+
/// The simple pattern contains a stray { or }.
#[error("simple pattern contains a stray {{ or }}")]
StrayBraceInSimplePattern(String),