Created
December 5, 2016 22:32
-
-
Save cholcombe973/0e4fb3ba37c8751231643e7f792eaff9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let keystore = if args.is_present("vault") { | |
match KeyStore::load_from_vault() { | |
Ok(keystore) => keystore, | |
Err(err) => { | |
error!("Unable to load keyfile: {}", err); | |
return; | |
} | |
} | |
} else { | |
let args_keyfile = args.value_of("keyfile") | |
.expect("internal error. keyfile not specified"); | |
match KeyStore::load_from_path(args_keyfile) { | |
Ok(keystore) => keystore, | |
Err(err) => { | |
error!("Unable to load keyfile: {}", err); | |
return; | |
} | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment