This commit is contained in:
jl777
2018-04-12 21:04:01 +03:00
parent 874106bf75
commit fce64b22d6

View File

@@ -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();
}