update error reporting

This commit is contained in:
Daniel Larimer 2014-05-13 16:41:27 -04:00
parent 8d4fccba5f
commit 0a11b29984

View file

@ -136,7 +136,7 @@ template<> struct reflector<ENUM> { \
switch( elem ) { \
BOOST_PP_SEQ_FOR_EACH( FC_REFLECT_ENUM_TO_STRING, ENUM, FIELDS ) \
default: \
fc::throw_bad_enum_cast( BOOST_PP_STRINGIZE(elem), BOOST_PP_STRINGIZE(ENUM) ); \
fc::throw_bad_enum_cast( fc::to_string(int64_t(elem)).c_str(), BOOST_PP_STRINGIZE(ENUM) ); \
}\
return nullptr; \
} \