if (do_show_config_value.size()) {
string val;
- int r = conf_stringify(_get_val(do_show_config_value), &val);
+ int r = conf_stringify(_get_val(do_show_config_value, 0, &cerr), &val);
if (r < 0) {
if (r == -ENOENT)
std::cerr << "failed to get config option '"
Option::value_t md_config_t::_get_val(
const std::string &key,
- expand_stack_t *stack) const
+ expand_stack_t *stack,
+ std::ostream *err) const
{
assert(lock.is_locked());
if (key.empty()) {
return Option::value_t(boost::blank());
}
- return _get_val(*o, stack);
+ return _get_val(*o, stack, err);
}
Option::value_t md_config_t::_get_val(
int _get_val_cstr(const std::string &key, char **buf, int len) const;
Option::value_t _get_val(const std::string &key,
- expand_stack_t *stack=0) const;
+ expand_stack_t *stack=0,
+ std::ostream *err=0) const;
Option::value_t _get_val(const Option& o,
expand_stack_t *stack=0,
std::ostream *err=0) const;