Throw a domain error as json_spirit is a third-party library.

This commit is contained in:
Simon
2016-08-27 09:14:25 -07:00
parent df3af446e7
commit 1f882153b6

View File

@@ -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