Skip to content

Commit dfe4902

Browse files
committed
chore: add detailed messages to adb errors
1 parent 39d6c38 commit dfe4902

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/utils/fs.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,11 @@ impl FSEmu for BackendADB {
9090

9191
let output = cmd.output()?;
9292
if !output.status.success() {
93-
let message = format!("adb exited with code {}", output.status.code().unwrap_or(-1));
93+
let message = format!(
94+
"adb exited with code {} detailing {}",
95+
output.status.code().unwrap_or(-1),
96+
String::from_utf8(output.stderr).unwrap()
97+
);
9498
return Err(Error::descriptive(message));
9599
}
96100

0 commit comments

Comments
 (0)