summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/_emerge/main.py4
1 files changed, 2 insertions, 2 deletions
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