diff --git a/crates/symbolicator/src/cli.rs b/crates/symbolicator/src/cli.rs index fd4555194..3daa2f897 100644 --- a/crates/symbolicator/src/cli.rs +++ b/crates/symbolicator/src/cli.rs @@ -138,10 +138,13 @@ pub fn execute() -> Result<()> { platform_tag ); } - if let Ok(platform) = std::env::var("SYMBOLICATOR_PLATFORM") { - tags.insert(platform_tag, platform.to_string()); - } else { - tracing::error!("platform not available"); + match std::env::var("SYMBOLICATOR_PLATFORM") { + Ok(platform) => { + tags.insert(platform_tag, platform.to_string()); + } + Err(e) => { + tracing::error!(error = %e, "platform not available"); + } } };