We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9164b48 commit 1188604Copy full SHA for 1188604
src/web/mod.rs
@@ -112,7 +112,7 @@ impl CratesfyiHandler {
112
113
let shared_resources = Self::chain(&pool_factory, rustdoc::SharedResourceHandler);
114
let router_chain = Self::chain(&pool_factory, routes.iron_router());
115
- let prefix = PathBuf::from(env::var("CRATESFYI_PREFIX").unwrap()).join("public_html");
+ let prefix = PathBuf::from(env::var("CRATESFYI_PREFIX").expect("the CRATESFYI_PREFIX environment variable is not set")).join("public_html");
116
let static_handler = Static::new(prefix)
117
.cache(Duration::from_secs(STATIC_FILE_CACHE_DURATION));
118
0 commit comments