summaryrefslogtreecommitdiff
path: root/src/error.rs
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2023-06-07 18:24:54 +0300
committerLars Wirzenius <liw@liw.fi>2023-06-07 18:24:54 +0300
commit21beb119ed2a8a1dcf1dfc8b6bd91d3ba46b10af (patch)
tree99cdb46451ea07079f279488f11783a794306055 /src/error.rs
parentff61617ca720750cda810d16275485e973068af5 (diff)
downloadsubplot-21beb119ed2a8a1dcf1dfc8b6bd91d3ba46b10af.tar.gz
feat! don't allow indented scenario steps
Some day we will have syntax for continuing a step to the next line. This change makes it easier to introduce that syntax, without a breaking change. Sponsored-by: author
Diffstat (limited to 'src/error.rs')
-rw-r--r--src/error.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/error.rs b/src/error.rs
index db85e83..93a828a 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -10,6 +10,10 @@ use thiserror::Error;
/// Define all the kinds of errors any part of this crate can return.
#[derive(Debug, Error)]
pub enum SubplotError {
+ /// Scenario step does not start at the beginning of the line.
+ #[error("Scenario step is indented: {0}")]
+ NotAtBoln(String),
+
/// Document has non-fatal errors.
#[error("Document has {0} warnings.")]
Warnings(usize),