traceback — Print or retrieve a stack traceback
- try:
-
set_main_module(Context.run_dir + os.sep + Context.WSCRIPT_FILE)
-
except Errors.WafError as e:
-
Logs.pprint('RED', e.verbose_msg)
-
Logs.error(str(e))
-
sys.exit(1)
-
except Exception as e:
-
Logs.error('Waf: The wscript in %r is unreadable' % Context.run_dir, e)
-
traceback.print_exc(file=sys.stdout)
-
sys.exit(2)
阅读(654) | 评论(0) | 转发(0) |