Skip to content

Commit

Permalink
fix: report the error on compress_static_files fail (#321)
Browse files Browse the repository at this point in the history
  • Loading branch information
sabify authored Aug 22, 2024
1 parent e513943 commit 5dd5ec2
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/command/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,8 @@ pub async fn build_proj(proj: &Arc<Project>) -> Result<bool> {

// it is important to do the precompression of the static files before building the
// server to make it possible to include them as assets into the binary itself
if proj.release
&& proj.precompress
&& compress::compress_static_files(proj.site.root_dir.clone().into())
.await
.is_err()
{
return Ok(false);
if proj.release && proj.precompress {
compress::compress_static_files(proj.site.root_dir.clone().into()).await?;
}

if !compile::server(proj, &changes).await.await??.is_success() {
Expand Down

0 comments on commit 5dd5ec2

Please sign in to comment.