diff --git a/prover/crates/bin/proof_fri_compressor/src/compressor.rs b/prover/crates/bin/proof_fri_compressor/src/compressor.rs index dc5ca939d9b..34a2c965a31 100644 --- a/prover/crates/bin/proof_fri_compressor/src/compressor.rs +++ b/prover/crates/bin/proof_fri_compressor/src/compressor.rs @@ -136,7 +136,7 @@ impl JobProcessor for ProofCompressor { .get_scheduler_proof_job_id(l1_batch_number) .await else { - return Ok(None); + anyhow::bail!("Scheduler proof is missing from database for batch {l1_batch_number}"); }; tracing::info!( "Started proof compression for L1 batch: {:?}",