diff options
author | Tim Harder <radhermit@gmail.com> | 2016-02-29 20:36:45 -0500 |
---|---|---|
committer | Tim Harder <radhermit@gmail.com> | 2016-02-29 20:36:45 -0500 |
commit | 1c637ad2e4a91c1c2317efdb2e56ad13b281f108 (patch) | |
tree | 6844d4033d1c1df5a7a9e17e5bd2b9e36c2163c1 | |
parent | scripts: use argparse error() for more error messages (diff) | |
download | pkgcore-1c637ad2e4a91c1c2317efdb2e56ad13b281f108.tar.gz pkgcore-1c637ad2e4a91c1c2317efdb2e56ad13b281f108.tar.bz2 pkgcore-1c637ad2e4a91c1c2317efdb2e56ad13b281f108.zip |
pconfig: revert pconfig describe_class error output to fix test
-rw-r--r-- | pkgcore/scripts/pconfig.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgcore/scripts/pconfig.py b/pkgcore/scripts/pconfig.py index e15992be1..bb667aea8 100644 --- a/pkgcore/scripts/pconfig.py +++ b/pkgcore/scripts/pconfig.py @@ -146,7 +146,8 @@ def describe_class_main(options, out, err): try: type_obj = basics.ConfigType(options.target_class) except errors.TypeDefinitionError: - describe_class.error('not a valid type: %s' % (options.target_class,)) + err.write('Not a valid type!') + return 1 write_type(out, type_obj) def write_type(out, type_obj): |