Include the name of the option in the exception thrown when an option is not found

Originally committed to SVN as r5501.
This commit is contained in:
Thomas Goyne 2011-07-26 19:51:47 +00:00
parent a33da9cba5
commit 7824348f10

View file

@ -105,7 +105,7 @@ OptionValue* Options::Get(const std::string &name) {
return index->second;
LOG_E("option/get") << "agi::Options::Get Option not found: (" << name << ")";
throw OptionErrorNotFound("Option value not found");
throw OptionErrorNotFound("Option value not found: " + name);
}