diff options
author | JF Ding <Jian-feng.Ding@intel.com> | 2011-09-02 11:22:11 +0900 |
---|---|---|
committer | JF Ding <Jian-feng.Ding@intel.com> | 2011-09-02 11:22:11 +0900 |
commit | cb850e3a0a5b28396c4b5579df91e6ab2d0d0361 (patch) | |
tree | cb4fd14fb750a499e60b8fa635ad271c5d240a74 /tools | |
parent | c7af663cb7c905b4294db8a3edfb1b8c0c7b7c1b (diff) | |
download | mic-cb850e3a0a5b28396c4b5579df91e6ab2d0d0361.tar.gz mic-cb850e3a0a5b28396c4b5579df91e6ab2d0d0361.tar.bz2 mic-cb850e3a0a5b28396c4b5579df91e6ab2d0d0361.zip |
enhancement for 'usage' message
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/mic | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -167,8 +167,10 @@ if __name__ == "__main__": try: mic = Mic() sys.exit(mic.main()) + except errors.Usage, usage: + msger.error(str(usage)) - except (errors.Usage, errors.ConfigError, errors.CreatorError) as err: + except errors.ConfigError, err: if msger.get_loglevel() == 'debug': import traceback msger.error(traceback.format_exc()) |