diff --git a/src/univalue/lib/univalue.cpp b/src/univalue/lib/univalue.cpp index 14f4c3c4f..446d2cabd 100644 --- a/src/univalue/lib/univalue.cpp +++ b/src/univalue/lib/univalue.cpp @@ -309,7 +309,10 @@ bool UniValue::get_bool() const const std::string& UniValue::get_str() const { if (typ != VSTR) + { + fprintf(stderr,"typ.%d VSTR %d\n",(int32_t)typ,(int32_t)VSTR); throw std::runtime_error("JSON value is not a string as expected"); + } return getValStr(); }