diff --git a/eo/src/utils/eoParam.h b/eo/src/utils/eoParam.h index 948092c93..1c0937528 100644 --- a/eo/src/utils/eoParam.h +++ b/eo/src/utils/eoParam.h @@ -224,7 +224,9 @@ public : void setValue(const std::string& _value) { std::istringstream is(_value); - is >> repValue; + bool read = (is >> repValue); + if (!read) + throw std::runtime_error("Could not read value passed in eoValueParam::setValue"); } protected: