diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2020-12-15 13:42:59 +0000 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2020-12-18 17:50:19 +0000 |
commit | 37e9b82bbb7011b4b3d02f47921e5be3f59616da (patch) | |
tree | 6debcae2808c469792f246fbe134a1834c1da5d1 /src/error.rs | |
parent | d5d02d4296ed6cb07bb3e6f4438752c7b877bcaa (diff) | |
download | subplot-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.rs | 4 |
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), |