diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/emerge | 5 | ||||
-rwxr-xr-x | bin/portageq | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/bin/emerge b/bin/emerge index 7c59ece9a..0c29b187b 100755 --- a/bin/emerge +++ b/bin/emerge @@ -6635,10 +6635,13 @@ def emerge_main(): return retval if __name__ == "__main__": - from portage_exception import PermissionDenied + from portage_exception import ParseError, PermissionDenied try: retval = emerge_main() except PermissionDenied, e: sys.stderr.write("Permission denied: '%s'\n" % str(e)) sys.exit(e.errno) + except ParseError, e: + sys.stderr.write("%s\n" % str(e)) + sys.exit(1) sys.exit(retval) diff --git a/bin/portageq b/bin/portageq index 056502e39..b097889ae 100755 --- a/bin/portageq +++ b/bin/portageq @@ -411,6 +411,9 @@ def main(): except portage_exception.PermissionDenied, e: sys.stderr.write("Permission denied: '%s'\n" % str(e)) sys.exit(e.errno) + except portage_exception.ParseError, e: + sys.stderr.write("%s\n" % str(e)) + sys.exit(1) except ValueError, e: if not e.args or \ not hasattr(e.args[0], "__len__") or \ |