Error logging to console a bit
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
#[derive(Debug, PartialEq, Eq)]
|
||||
pub enum RemotePicoError {
|
||||
ConnectionRefused,
|
||||
StreamWriteError,
|
||||
|
||||
@@ -28,7 +28,10 @@ fn main() {
|
||||
|
||||
writeln!(log_file, "{}", vals_str.join(", ")).unwrap();
|
||||
}
|
||||
Err(_) => writeln!(log_file, "E, E, E, E").unwrap(),
|
||||
Err(e) => {
|
||||
println!("Error connecting to pico: {:?}", e);
|
||||
writeln!(log_file, "E, E, E, E").unwrap();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user