mirror of
https://github.com/n08i40k/schedule-parser-rusted.git
synced 2025-12-06 09:47:50 +03:00
fix(parser): fix sentry error sending
This commit is contained in:
@@ -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!(
|
||||
|
||||
Reference in New Issue
Block a user