Skip to content

Commit

Permalink
feat: small improvement to error message
Browse files Browse the repository at this point in the history
  • Loading branch information
joseph-sentry committed Dec 20, 2024
1 parent 7920ff8 commit e69c111
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/raw_upload.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ pub fn parse_raw_upload(raw_upload_bytes: &[u8]) -> PyResult<(Vec<u8>, Vec<u8>)>
let pos = reader.buffer_position();
let (line, col) = get_position_info(&decompressed_file_bytes, pos.try_into().unwrap());
ParserError::new_err(format!(
"Error parsing JUnit XML at {}:{}: {}",
line, col, e
"Error parsing JUnit XML in {} at {}:{}: {}",
file.filename, line, col, e
))

Check warning on line 84 in src/raw_upload.rs

View check run for this annotation

Codecov Notifications / codecov/patch

src/raw_upload.rs#L79-L84

Added lines #L79 - L84 were not covered by tests
})?;
results.push(reader_result);
Expand Down

0 comments on commit e69c111

Please sign in to comment.