This commit is contained in:
@@ -309,7 +309,10 @@ bool UniValue::get_bool() const
|
|||||||
const std::string& UniValue::get_str() const
|
const std::string& UniValue::get_str() const
|
||||||
{
|
{
|
||||||
if (typ != VSTR)
|
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");
|
throw std::runtime_error("JSON value is not a string as expected");
|
||||||
|
}
|
||||||
return getValStr();
|
return getValStr();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user