diff options
Diffstat (limited to 'pym')
-rw-r--r-- | pym/portage/dep/__init__.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pym/portage/dep/__init__.py b/pym/portage/dep/__init__.py index a8d05f1f7..a92b481d1 100644 --- a/pym/portage/dep/__init__.py +++ b/pym/portage/dep/__init__.py @@ -2145,8 +2145,10 @@ def check_required_use(required_use, use, iuse_match): is_negated = False if not flag or not iuse_match(flag): - raise InvalidDependString( - _("malformed syntax: '%s'") % required_use) + msg = _("USE flag '%s' is not in IUSE") \ + % (flag,) + e = InvalidData(msg, category='IUSE.missing') + raise InvalidDependString(msg, errors=(e,)) return (flag in use and not is_negated) or \ (flag not in use and is_negated) |