error message?

This commit is contained in:
Cadey Ratio 2020-11-07 19:54:56 -05:00
parent 2a50a0a6d1
commit b20b6461eb
1 changed files with 3 additions and 1 deletions

View File

@ -206,7 +206,9 @@ impl<'a> FirehoseAdaptor for Rules<'a> {
#[tokio::main]
async fn main() -> Result<()> {
let _ = kankyo::init().or_else(|_| kankyo::load_from_path("/run/keys/tron", true));
let _ = kankyo::init()
.or_else(|_| kankyo::load_from_path("/run/keys/tron", true))
.map_err(|why| println!("startup err: {}", why));
pretty_env_logger::init();
let cfg: Config = envy::from_env()?;
log::debug!("cfg: {:?}", cfg);