Skip to content

Commit

Permalink
CHORE: rename unsuoppreted acquistion for precrsor reader
Browse files Browse the repository at this point in the history
  • Loading branch information
sander-willems-bruker committed Jul 17, 2024
1 parent 903ed34 commit c6f96de
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/io/readers/precursor_reader/tdf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,11 @@ impl TDFPrecursorReader {
Box::new(DIATDFPrecursorReader::new(path)?)
},
acquisition_type => {
return Err(TDFPrecursorReaderError::UnknownPrecursorType(
format!("{:?}", acquisition_type),
))
return Err(
TDFPrecursorReaderError::UnsupportedAcquisition(
format!("{:?}", acquisition_type),
),
)
},
};
let reader = Self { precursor_reader };
Expand All @@ -70,5 +72,5 @@ pub enum TDFPrecursorReaderError {
#[error("{0}")]
DIATDFPrecursorReaderError(#[from] DIATDFPrecursorReaderError),
#[error("Invalid acquistion type for precursor reader: {0}")]
UnknownPrecursorType(String),
UnsupportedAcquisition(String),
}

0 comments on commit c6f96de

Please sign in to comment.