diff options
Diffstat (limited to 'src/error.rs')
-rw-r--r-- | src/error.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/error.rs b/src/error.rs index eb70e28..532714b 100644 --- a/src/error.rs +++ b/src/error.rs @@ -1,3 +1,5 @@ +use crate::matches::MatchedSteps; + use std::path::PathBuf; use std::process::Output; @@ -46,8 +48,8 @@ pub enum SubplotError { /// /// 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), + #[error("more than one binding matches step {0}:\n{1}")] + BindingNotUnique(String, MatchedSteps), /// A binding in the bindings file doesn't specify a known keyword. #[error("binding doesn't specify known keyword: {0}")] |