From 997acc74060f9ae8acd320cf1c04d514d1de79fa Mon Sep 17 00:00:00 2001 From: Florin Chirica Date: Mon, 13 Mar 2023 19:16:45 +0200 Subject: [PATCH] Throw GRResult_NoProof separately. --- src/prover_disk.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/prover_disk.hpp b/src/prover_disk.hpp index b3d761159..217e51f67 100644 --- a/src/prover_disk.hpp +++ b/src/prover_disk.hpp @@ -486,7 +486,9 @@ class DiskProver { decompresser_context_queue.push(gr); if (res != GRResult_OK) { - std::cout << "Got wrong result: " << static_cast(res) << "\n"; + if (res == GRResult_NoProof) { + throw std::runtime_error("GRResult_NoProof received"); + } throw std::runtime_error("GRResult is not GRResult_OK."); } std::vector uncompressed_xs;