diff --git a/src/tiles/local_time.rs b/src/tiles/local_time.rs index 343313a..abcc8e9 100644 --- a/src/tiles/local_time.rs +++ b/src/tiles/local_time.rs @@ -2,6 +2,7 @@ use crate::config::LocalTimeConfig; use crate::output::OutputChannel; use crate::tile::Block; use chrono::prelude::*; +use eyre::Context; use maxminddb::geoip2; use std::convert::Infallible; @@ -31,7 +32,8 @@ async fn find_time_zone(config: LocalTimeConfig, sender: watch::Sender) - let Some(geoip_path) = &config.geoip_path else { eyre::bail!("geoip path not specified"); }; - let db_reader = maxminddb::Reader::open_readfile(geoip_path)?; + let db_reader = maxminddb::Reader::open_readfile(geoip_path) + .wrap_err("Could not read specified geoip file path")?; // Force IPv4 since we don't need to make a request for ipv6 let http_client = reqwest::Client::builder()