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() {
|
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!(
|
||||||
|
|||||||
Reference in New Issue
Block a user