From 2cfb3e852ce4ce9e83690e8033f50d32f696f5bd Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 29 Apr 2010 06:33:22 -0700 Subject: Bail out immediately if --exclude is given a bad atom. --- pym/_emerge/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pym') diff --git a/pym/_emerge/main.py b/pym/_emerge/main.py index 11dc9a4f0..d5d364b21 100644 --- a/pym/_emerge/main.py +++ b/pym/_emerge/main.py @@ -754,8 +754,8 @@ def parse_opts(tmpcmdline, silent=False): exclude.append(atom) if bad_atoms and not silent: - writemsg("!!! Invalid Atom(s) in --exclude parameter: '%s' (only package names and slot atoms allowed)\n" % \ - (",".join(bad_atoms),), noiselevel=-1) + parser.error("Invalid Atom(s) in --exclude parameter: '%s' (only package names and slot atoms allowed)\n" % \ + (",".join(bad_atoms),)) myoptions.exclude = exclude -- cgit v1.2.3-1-g7c22