Skip to content

Commit

Permalink
add feature gate on error branch
Browse files Browse the repository at this point in the history
Signed-off-by: Benjamin Coenen <[email protected]>
  • Loading branch information
bnjjj committed Dec 13, 2023
1 parent 8f14ed5 commit 604175c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions twelf/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ use thiserror::Error as ErrorTrait;
/// Error generated when instantiate configuration
#[derive(Debug, ErrorTrait)]
pub enum Error {
#[cfg(any(
feature = "json",
feature = "yaml",
feature = "toml",
feature = "ini",
feature = "dhall"
))]
#[error("env lookup error")]
ShellExpand(#[from] shellexpand::LookupError<VarError>),
#[error("io error")]
Expand Down

0 comments on commit 604175c

Please sign in to comment.