From 1f882153b69d05c7fd0890981b7f6fff172c4795 Mon Sep 17 00:00:00 2001 From: Simon Date: Sat, 27 Aug 2016 09:14:25 -0700 Subject: [PATCH] Throw a domain error as json_spirit is a third-party library. --- src/json/json_spirit_reader_template.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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