diff options
author | Lars Wirzenius <liw@liw.fi> | 2023-05-14 07:46:35 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2023-05-14 07:56:15 +0300 |
commit | 113ed1a871fddae8ccf942c19fe6737106fb3e84 (patch) | |
tree | e44c6b885dc03e3f3ff9a16cf75d63e84caee256 /src/error.rs | |
parent | 5b30f07a5989769397de7441ac9440e379a53488 (diff) | |
download | subplot-113ed1a871fddae8ccf942c19fe6737106fb3e84.tar.gz |
feat: check for duplicate scenario titles
Sponsored-by: author
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, |