make SiteBuilder creation fallible

This commit is contained in:
zyl 2024-11-07 17:20:43 -08:00
parent f4a2708794
commit 190cba1f3a
Signed by: zyl
SSH key fingerprint: SHA256:uxxbSXbdroP/OnKBGnEDk5q7EKB2razvstC/KmzdXXs
3 changed files with 6 additions and 7 deletions

View file

@ -150,7 +150,7 @@ impl Site {
pub async fn serve(self) -> eyre::Result<()> {
let addr = SocketAddr::from(([127, 0, 0, 1], 8080));
let mut builder = SiteBuilder::new(self, true).prepare()?;
let mut builder = SiteBuilder::new(self, true)?.prepare()?;
let site = &builder.site;
let build_path = builder.build_path.clone();