Skip to content

Commit

Permalink
feature gate csv error
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelkirk committed Sep 18, 2024
1 parent 7812f2e commit c1e42b0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions geozero/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,12 @@ pub enum GeozeroError {
#[error("processing geometry `{0}`")]
Geometry(String),
// General
#[error("CSV error `{0}`")]
CsvError(#[from] crate::csv::CsvError),
#[error("I/O error `{0}`")]
IoError(#[from] std::io::Error),
// Format Specific
#[cfg(feature = "with-csv")]
#[error("CSV error `{0}`")]
CsvError(#[from] crate::csv::CsvError),
#[cfg(feature = "with-mvt")]
#[error("MVT error `{0}`")]
MvtError(#[from] crate::mvt::MvtError),
Expand Down

0 comments on commit c1e42b0

Please sign in to comment.