Skip to content

Commit

Permalink
[rust] Log error message as debug trace when uncompressing driver
Browse files Browse the repository at this point in the history
  • Loading branch information
bonigarcia committed Apr 21, 2023
1 parent c7e2b55 commit e51d1aa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion rust/src/files.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,11 @@ pub fn uncompress(
} else if extension.eq_ignore_ascii_case(GZ) {
untargz(file, target, log)?
} else if extension.eq_ignore_ascii_case(XML) {
return Err("Wrong browser/driver version".into());
log.debug(format!(
"Wrong downloaded driver: {}",
fs::read_to_string(compressed_file).unwrap_or_default()
));
return Err(PARSE_ERROR.into());
} else {
return Err(format!(
"Downloaded file cannot be uncompressed ({} extension)",
Expand Down

0 comments on commit e51d1aa

Please sign in to comment.