diff options
author | Daniel Silverstone <dsilvers+gitlab@digital-scurf.org> | 2022-05-06 19:28:34 +0000 |
---|---|---|
committer | Daniel Silverstone <dsilvers+gitlab@digital-scurf.org> | 2022-05-06 19:28:34 +0000 |
commit | 27b617cbaa9e6d4fb58a0b971b428a05da8ec5d9 (patch) | |
tree | 08067bf4290982e4a717ba55a660714084370158 /subplot-build/src/lib.rs | |
parent | c2cbccd45a2c356e458abc8bbef3193434e8572a (diff) | |
parent | 52ccfa5a1bf2893bdc63ff1bad2b2a88ca86ef95 (diff) | |
download | subplot-27b617cbaa9e6d4fb58a0b971b428a05da8ec5d9.tar.gz |
Merge branch 'liw/tidy-up-error' into 'main'
tidy up error handling a bit
See merge request subplot/subplot!275
Diffstat (limited to 'subplot-build/src/lib.rs')
-rw-r--r-- | subplot-build/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/subplot-build/src/lib.rs b/subplot-build/src/lib.rs index 28558e8..f8ed074 100644 --- a/subplot-build/src/lib.rs +++ b/subplot-build/src/lib.rs @@ -7,7 +7,7 @@ use std::env::var_os; use std::fmt::Debug; use std::path::{Path, PathBuf}; -use subplot::{get_basedir_from, Result}; +use subplot::{get_basedir_from, SubplotError}; use tracing::{event, instrument, span, Level}; /// Generate code for one document, inside `build.rs`. @@ -31,7 +31,7 @@ use tracing::{event, instrument, span, Level}; /// # dir.close().unwrap() /// ``` #[instrument(level = "trace")] -pub fn codegen<P>(filename: P) -> Result<()> +pub fn codegen<P>(filename: P) -> Result<(), SubplotError> where P: AsRef<Path> + Debug, { |