From fce64b22d624d286130cd2faebccde15ab9fc964 Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 12 Apr 2018 21:04:01 +0300 Subject: [PATCH] Print --- src/univalue/lib/univalue.cpp | 3 +++ 1 file changed, 3 insertions(+) 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(); }