diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2020-12-15 14:18:32 +0000 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2020-12-18 17:50:19 +0000 |
commit | 1deb0e5227a7ff2bde1f0e218e44adc8ef43af4b (patch) | |
tree | 210d1daa9c558600b7ad87d804c656121a1f9fe9 /src/error.rs | |
parent | 4045e0164afd47a383d8a3177091887848be434f (diff) | |
download | subplot-1deb0e5227a7ff2bde1f0e218e44adc8ef43af4b.tar.gz |
bindings: Add check that captured text matches the kind 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 7eaf60c..73cfbb6 100644 --- a/src/error.rs +++ b/src/error.rs @@ -57,6 +57,10 @@ pub enum SubplotError { #[error("binding has more than one keyword (given/when/then)")] BindingHasManyKeywords(String), + /// A binding lists an unknown type in its type map + #[error("binding has unknown type/kind {0}")] + UnknownTypeInBinding(String), + /// Subplot tried to use a program, but couldn't feed it data /// /// Subplot uses some helper programs to implement some of its |