summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJF Ding <Jian-feng.Ding@intel.com>2011-09-02 11:22:11 +0900
committerJF Ding <Jian-feng.Ding@intel.com>2011-09-02 11:22:11 +0900
commitcb850e3a0a5b28396c4b5579df91e6ab2d0d0361 (patch)
treecb4fd14fb750a499e60b8fa635ad271c5d240a74 /tools
parentc7af663cb7c905b4294db8a3edfb1b8c0c7b7c1b (diff)
downloadmic-cb850e3a0a5b28396c4b5579df91e6ab2d0d0361.tar.gz
mic-cb850e3a0a5b28396c4b5579df91e6ab2d0d0361.tar.bz2
mic-cb850e3a0a5b28396c4b5579df91e6ab2d0d0361.zip
enhancement for 'usage' message
Diffstat (limited to 'tools')
-rwxr-xr-xtools/mic4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/mic b/tools/mic
index e63ab28..79914c1 100755
--- a/tools/mic
+++ b/tools/mic
@@ -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())