Skip to content

Commit

Permalink
fix(proguard): Fix error casing (#1412)
Browse files Browse the repository at this point in the history
  • Loading branch information
loewenheim authored Mar 20, 2024
1 parent b60340f commit 30e83b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions crates/symbolicator-proguard/src/interface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ pub struct JvmModule {

/// The type of a [`ProguardError`].
#[derive(Debug, Clone, Copy, Deserialize, Serialize, PartialEq, Eq)]
#[serde(rename_all = "snake_case")]
pub enum ProguardErrorKind {
/// The file couldn't be downloaded.
Missing,
Expand Down
1 change: 1 addition & 0 deletions crates/symbolicator-proguard/src/symbolication.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ impl ProguardService {
match res {
Ok(mapper) => mappers.push(mapper.get()),
Err(e) => {
tracing::error!(%debug_id, error = %e, "Error reading Proguard file");
let kind = match e {
CacheError::Malformed(msg) => match msg.as_str() {
"The file is not a valid ProGuard file" => ProguardErrorKind::Invalid,
Expand Down

0 comments on commit 30e83b5

Please sign in to comment.