summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/portageq4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/portageq b/bin/portageq
index 5a4364fe8..34a538599 100755
--- a/bin/portageq
+++ b/bin/portageq
@@ -99,6 +99,10 @@ def has_version(argv):
sys.exit(1)
except KeyError:
sys.exit(1)
+ except portage.exception.InvalidAtom:
+ portage.writemsg("ERROR: Invalid atom: '%s'\n" % argv[1],
+ noiselevel=-1)
+ return 2
has_version.uses_root = True