summaryrefslogtreecommitdiff
path: root/src/error.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/error.rs')
-rw-r--r--src/error.rs7
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),