Skip to content

Commit e51d1aa

Browse files
committed
[rust] Log error message as debug trace when uncompressing driver
1 parent c7e2b55 commit e51d1aa

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

rust/src/files.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,11 @@ pub fn uncompress(
7878
} else if extension.eq_ignore_ascii_case(GZ) {
7979
untargz(file, target, log)?
8080
} else if extension.eq_ignore_ascii_case(XML) {
81-
return Err("Wrong browser/driver version".into());
81+
log.debug(format!(
82+
"Wrong downloaded driver: {}",
83+
fs::read_to_string(compressed_file).unwrap_or_default()
84+
));
85+
return Err(PARSE_ERROR.into());
8286
} else {
8387
return Err(format!(
8488
"Downloaded file cannot be uncompressed ({} extension)",

0 commit comments

Comments
 (0)