mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
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:
parent
309ee57783
commit
7ae5e4657d
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue