summaryrefslogtreecommitdiff
path: root/src/error.rs
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2023-12-01 17:59:46 +0200
committerLars Wirzenius <liw@liw.fi>2023-12-25 10:17:07 +0200
commitd6ba90c694fe8905aadf02acbbb0ff7e24f30b4e (patch)
tree651be9d4399728e0b4174eca0b42eb613547d565 /src/error.rs
parentb010f40593fb6ecafd7cc64f0ec6d78c3126603a (diff)
downloadsubplot-d6ba90c694fe8905aadf02acbbb0ff7e24f30b4e.tar.gz
refactor: move CSS file out of doc.rs
Make it easier to edit the CSS file, and also add some styles for upcoming scenario typesetting. Signed-off-by: Lars Wirzenius <liw@liw.fi> 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 5c72879..7c63ca4 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -18,6 +18,10 @@ pub enum SubplotError {
#[error("Document has {0} warnings.")]
Warnings(usize),
+ /// Subplot could not find its CSS file.
+ #[error("failed to find CSS file: {0}")]
+ CssFileNotFound(PathBuf, #[source] std::io::Error),
+
/// Subplot could not find a file named as a bindings file.
#[error("binding file could not be found: {0}")]
BindingsFileNotFound(PathBuf, #[source] std::io::Error),