diff --git a/src/core_read.cpp b/src/core_read.cpp --- a/src/core_read.cpp +++ b/src/core_read.cpp @@ -19,6 +19,7 @@ #include #include #include +#include CScript ParseScript(const std::string &s) { CScript result; @@ -121,7 +122,10 @@ // If push_size is set, ensure have added the right amount of stuff. if (push_size != 0 && size_change != push_size) { - throw std::runtime_error("Wrong number of bytes being pushed."); + throw std::runtime_error( + "Wrong number of bytes being pushed. Expected:" + + boost::lexical_cast(push_size) + + " Pushed:" + boost::lexical_cast(size_change)); } // If push_size is set, and we have push_data_size set, then we have a