diff options
author | Daniel Silverstone <dsilvers+gitlab@digital-scurf.org> | 2023-05-15 07:44:21 +0000 |
---|---|---|
committer | Daniel Silverstone <dsilvers+gitlab@digital-scurf.org> | 2023-05-15 07:44:21 +0000 |
commit | 18c50cafb77fe5ebdeae65048c7327c4d7bda04d (patch) | |
tree | e44c6b885dc03e3f3ff9a16cf75d63e84caee256 /src/error.rs | |
parent | 5b30f07a5989769397de7441ac9440e379a53488 (diff) | |
parent | 113ed1a871fddae8ccf942c19fe6737106fb3e84 (diff) | |
download | subplot-18c50cafb77fe5ebdeae65048c7327c4d7bda04d.tar.gz |
Merge branch 'liw/dup-scenario' into 'main'
feat: check for duplicate scenario titles
See merge request subplot/subplot!329
Diffstat (limited to 'src/error.rs')
-rw-r--r-- | src/error.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/error.rs b/src/error.rs index a322bd6..f7dfe52 100644 --- a/src/error.rs +++ b/src/error.rs @@ -173,6 +173,13 @@ pub enum SubplotError { #[error("continuation keyword used too early")] ContinuationTooEarly, + /// Scenario has the same title as another scenario + /// + /// Titles of scenarios must be unique in the input document, + /// but Subplot found at least one with the same title as another. + #[error("Scenario title is duplicate: {0:?}")] + DuplicateScenario(String), + /// Embedded file has the same name as another embedded file /// /// Names of embedded files must be unique in the input document, |