improve error handling and request timing
This commit is contained in:
parent
4a5a7e0f74
commit
0055db7445
4 changed files with 101 additions and 30 deletions
|
@ -1,9 +1,11 @@
|
|||
use std::error::Error;
|
||||
|
||||
use b15f::B15F;
|
||||
|
||||
fn main() -> Result<(), Box<dyn Error>>{
|
||||
let drv = B15F::new()?;
|
||||
|
||||
Ok(())
|
||||
fn main() {
|
||||
let _drv = match B15F::new() {
|
||||
Ok(val) => val,
|
||||
Err(error) => {
|
||||
eprintln!("{error}");
|
||||
return;
|
||||
}
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue