fix(parser): fix sentry error sending

This commit is contained in:
2025-10-10 03:00:47 +04:00
parent ad86f6cd64
commit cdc89b5bcd

View File

@@ -485,13 +485,10 @@ fn parse_name_and_subgroups(text: &str, row: u32, column: u32) -> Result<ParsedL
if result.is_none() { if result.is_none() {
#[cfg(not(debug_assertions))] #[cfg(not(debug_assertions))]
sentry::capture_message( sentry::capture_error(&Error::UnknownLessonType {
&Error::UnknownLessonType { r#type: extra.to_string(),
r#type: extra.to_string(), pos: CellPos::new(row, column),
pos: CellPos::new(row, column), });
},
sentry::Level::Warning,
);
#[cfg(debug_assertions)] #[cfg(debug_assertions)]
log::warn!( log::warn!(