diff --git a/src/json/json_spirit_reader_template.h b/src/json/json_spirit_reader_template.h index 2e3d21e90..33aa0958e 100644 --- a/src/json/json_spirit_reader_template.h +++ b/src/json/json_spirit_reader_template.h @@ -310,7 +310,7 @@ namespace json_spirit { // ZCASH: Prevent potential stack overflow by setting a limit on the number of nested compound elements if (stack_.size() > 128) { - throw "too many nested elements"; + throw std::domain_error("too many nested elements"); } // ENDZCASH