Column: Only fail when an invalid UDA type is found

- Previously it was failing for a missing type, so that if a UDA was not
  completely defined, there was an unexpected error. This is because the
  setting uda.foo.label was enough to make Column extract 'foo', but then
  fail to extract uda.foo.type.
This commit is contained in:
Paul Beckingham 2016-02-01 18:43:47 -05:00
parent 309ee57783
commit 7ae5e4657d

View file

@ -216,8 +216,9 @@ Column* Column::uda (const std::string& name)
split (c->_values, values, ',');
return c;
}
else if (type != "")
throw std::string (STRING_UDA_TYPE);
throw std::string (STRING_UDA_TYPE);
return NULL;
}