summaryrefslogtreecommitdiff
path: root/src/error.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/error.rs')
-rw-r--r--src/error.rs10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/error.rs b/src/error.rs
index f7dfe52..db85e83 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -1,4 +1,4 @@
-use crate::html::HtmlError;
+use crate::html::{HtmlError, Location};
use crate::matches::MatchedSteps;
use crate::md::MdError;
@@ -148,8 +148,8 @@ pub enum SubplotError {
/// scenario block before the first heading in the document.
///
/// To fix, add a heading or move the scenario after a heading.
- #[error("first scenario is before first heading")]
- ScenarioBeforeHeading,
+ #[error("{0}: first scenario is before first heading")]
+ ScenarioBeforeHeading(Location),
/// Step does not have a keyword.
#[error("step has no keyword: {0}")]
@@ -299,10 +299,6 @@ pub enum SubplotError {
#[error("Failed to parse YAML metadata in {0}")]
MetadataFile(PathBuf, #[source] serde_yaml::Error),
- /// Abstract syntax tree error.
- #[error(transparent)]
- Ast(#[from] crate::metadata::Error),
-
/// UTF8 conversion error.
#[error("failed to parse UTF8 in file {0}")]
FileUtf8(PathBuf, #[source] std::string::FromUtf8Error),