From 16b74d9cdd729f97827ad969691ee582c0c056d5 Mon Sep 17 00:00:00 2001 From: Nickiel12 Date: Fri, 25 Aug 2023 22:22:17 -0700 Subject: [PATCH] more logging --- status_cloud/src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/status_cloud/src/main.rs b/status_cloud/src/main.rs index 602a8de..454215a 100644 --- a/status_cloud/src/main.rs +++ b/status_cloud/src/main.rs @@ -65,10 +65,11 @@ fn main() -> Result<(), Box> { let mut drive_temps: Vec = vec![]; 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, Err(e) => { println!("Error running hddtemp: {}", e.to_string()); + println!("Drive was: {}", drive); return Ok(()); } };