Skip to content

Commit fd38621

Browse files
committed
Propagate envy error up
1 parent b246208 commit fd38621

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ async fn init_data(config: &Config, pool: Arc<PgPool>) -> Result<(), Error> {
8181
}
8282

8383
async fn app() -> Result<(), Error> {
84-
let config = envy::from_env::<Config>().unwrap();
84+
let config = envy::from_env::<Config>()?;
8585

8686
tracing_subscriber::fmt::init();
8787

0 commit comments

Comments
 (0)