Skip to content

Commit

Permalink
Throw GRResult_NoProof separately.
Browse files Browse the repository at this point in the history
  • Loading branch information
fchirica authored Mar 13, 2023
1 parent d6c0165 commit 997acc7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/prover_disk.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,9 @@ class DiskProver {
decompresser_context_queue.push(gr);

if (res != GRResult_OK) {
std::cout << "Got wrong result: " << static_cast<int>(res) << "\n";
if (res == GRResult_NoProof) {
throw std::runtime_error("GRResult_NoProof received");
}
throw std::runtime_error("GRResult is not GRResult_OK.");
}
std::vector<Bits> uncompressed_xs;
Expand Down

0 comments on commit 997acc7

Please sign in to comment.