Clean errors

This commit is contained in:
Aditya Kulkarni
2019-09-08 21:17:54 -07:00
parent c08b51fde7
commit 3ff71f26b7
2 changed files with 8 additions and 2 deletions

View File

@@ -28,7 +28,13 @@ pub fn main() {
.takes_value(true))
.get_matches();
let mut lightclient = LightClient::new(matches.value_of("seed")).unwrap();
let mut lightclient = match LightClient::new(matches.value_of("seed")) {
Ok(lc) => lc,
Err(e) => {
eprintln!("Failed to start wallet. Error was:\n{}", e);
return;
}
};
println!("Starting Light Client");