more logging
This commit is contained in:
parent
f88f190386
commit
16b74d9cdd
1 changed files with 2 additions and 1 deletions
|
@ -65,10 +65,11 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||||
let mut drive_temps: Vec<String> = vec![];
|
let mut drive_temps: Vec<String> = vec![];
|
||||||
|
|
||||||
for drive in drives {
|
for drive in drives {
|
||||||
let output = match Command::new("hddtemp").arg(drive).output() {
|
let output = match Command::new("hddtemp").arg(drive.clone()).output() {
|
||||||
Ok(val) => val,
|
Ok(val) => val,
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
println!("Error running hddtemp: {}", e.to_string());
|
println!("Error running hddtemp: {}", e.to_string());
|
||||||
|
println!("Drive was: {}", drive);
|
||||||
return Ok(());
|
return Ok(());
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue