feat: [sesam-vitale] Use thiserror, anyhow and expect to properly handle errors instead of unwrap
This commit is contained in:
@ -3,6 +3,8 @@ mod libssv;
|
||||
mod ssv_memory;
|
||||
mod ssvlib_demo;
|
||||
|
||||
fn main() {
|
||||
ssvlib_demo::demo();
|
||||
use anyhow::{Context, Result};
|
||||
|
||||
fn main() -> Result<()> {
|
||||
ssvlib_demo::demo().context("Error while running the SSV library demo")
|
||||
}
|
||||
|
Reference in New Issue
Block a user