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() {
#[cfg(not(debug_assertions))]
sentry::capture_message(
&Error::UnknownLessonType {
r#type: extra.to_string(),
pos: CellPos::new(row, column),
},
sentry::Level::Warning,
);
sentry::capture_error(&Error::UnknownLessonType {
r#type: extra.to_string(),
pos: CellPos::new(row, column),
});
#[cfg(debug_assertions)]
log::warn!(