Skip to content

Commit

Permalink
error for invalid abs_path
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelmaddock committed Jan 9, 2025
1 parent f0add7a commit b381fe3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion crates/symbolicator-js/src/symbolication.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,14 @@ async fn symbolicate_js_frame(
}
};

let abs_path = match raw_frame.abs_path {
Some(ref abs_path) => abs_path,
None => {
return Err(JsModuleErrorKind::InvalidAbsPath);
}
};

let col = raw_frame.colno.unwrap_or_default();
let abs_path = raw_frame.abs_path.clone().unwrap_or_default();

let module = lookup.get_module(&abs_path).await;

Expand Down

0 comments on commit b381fe3

Please sign in to comment.