diff --git a/libsnark/zk_proof_systems/plonk/srs.tcc b/libsnark/zk_proof_systems/plonk/srs.tcc index e6fbcbd86..ff3ba75f5 100644 --- a/libsnark/zk_proof_systems/plonk/srs.tcc +++ b/libsnark/zk_proof_systems/plonk/srs.tcc @@ -190,13 +190,9 @@ template libff::Fr transcript_hasher::get_hash() ((buffer_len == length[0]) || (buffer_len == length[1]) || (buffer_len == length[2]) || (buffer_len == length[3]) || (buffer_len == length[4]) || (buffer_len == length[5])); - try { - if (!b_valid_length) { - throw std::logic_error( - "Error: invalid length of transcript hasher buffer"); - } - } catch (const std::logic_error &e) { - std::cout << "Error: " << e.what() << "\n"; + if (!b_valid_length) { + throw std::logic_error( + "Error: invalid length of transcript hasher buffer"); } if (!b_valid_length) { printf(