mirror of
https://github.com/zyllian/webdog.git
synced 2025-05-11 02:56:38 -07:00
make SiteBuilder
creation fallible
This commit is contained in:
parent
f4a2708794
commit
190cba1f3a
3 changed files with 6 additions and 7 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue