diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2020-06-06 11:59:40 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2020-06-06 15:53:15 +0100 |
commit | 1187eff8a21ff6938d4d00c2a91232fde2d1a796 (patch) | |
tree | 56130467d472af0430105569a5e6d34c249ea2db /src/error.rs | |
parent | bba22e1f86967feebf94ebac327f7489c1029afd (diff) | |
download | subplot-1187eff8a21ff6938d4d00c2a91232fde2d1a796.tar.gz |
feat: Support reporting error when more than one binding matches a step
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Diffstat (limited to 'src/error.rs')
-rw-r--r-- | src/error.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/error.rs b/src/error.rs index f988c86..daef85c 100644 --- a/src/error.rs +++ b/src/error.rs @@ -34,6 +34,13 @@ pub enum SubplotError { #[error("do not understand binding: {0}")] BindingUnknown(String), + /// Scenario step matches more than one binding + /// + /// THis may be due to bindings being too general, or having unusual + /// overlaps in their matching + #[error("more than one binding matches: {0}")] + BindingNotUnique(String), + /// A binding in the bindings file doesn't specify a known keyword. #[error("binding doesn't specify known keyword: {0}")] BindingWithoutKnownKeyword(String), |