diff options
author | Daniel Silverstone <dsilvers+gitlab@digital-scurf.org> | 2020-05-09 12:22:26 +0000 |
---|---|---|
committer | Daniel Silverstone <dsilvers+gitlab@digital-scurf.org> | 2020-05-09 12:22:26 +0000 |
commit | d5a205fa611b2824faa0a93efd9b9b4694dea945 (patch) | |
tree | af6a0b34101995a45fa98c9db4d81d5539d8fa0d /src/error.rs | |
parent | 8d1ac8013d25a5bad7cc6c8c880f5bb1ccc67892 (diff) | |
parent | a21ba1f5fcc9b03f7657c5b00c4c215286b06341 (diff) | |
download | subplot-d5a205fa611b2824faa0a93efd9b9b4694dea945.tar.gz |
Merge branch 'keepkeyword' into 'master'
Change: keep actual text of keyword from scenario
Closes #24
See merge request larswirzenius/subplot!38
Diffstat (limited to 'src/error.rs')
-rw-r--r-- | src/error.rs | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/error.rs b/src/error.rs index 69013b8..53128b2 100644 --- a/src/error.rs +++ b/src/error.rs @@ -89,15 +89,19 @@ pub enum SubplotError { #[error("first scenario is before first heading")] ScenarioBeforeHeading, - /// Unknown scenario step keyword + /// Step does not have a keyword. + #[error("step has no keyword: {0}")] + NoStepKeyword(String), + + /// Unknown scenario step keyword. /// /// Each scenario step must start with a known keyword (given, /// when, then, and, but), but Subplot didn't find one it /// recognized. /// /// This is usually due to a typing mistake or similar. - #[error("unknown step keyword")] - UnknownStepKind, + #[error("unknown step keyword: {0}")] + UnknownStepKind(String), /// Scenario step uses continuation keyword too early /// |