print Invalid testcase path or testcases

This commit is contained in:
debugtalk
2019-01-22 21:19:03 +08:00
parent b71a06e159
commit c73a708307
2 changed files with 3 additions and 2 deletions

View File

@@ -233,7 +233,7 @@ class HttpRunner(object):
elif validator.is_testcases(path_or_tests):
return self.run_tests(path_or_tests)
else:
raise exceptions.ParamsError("invalid testcase path or testcases.")
raise exceptions.ParamsError("Invalid testcase path or testcases: {}".format(path_or_tests))
@property
def summary(self):

View File

@@ -512,7 +512,8 @@ def print_io(in_out):
content += prepare_content("Out", _out)
content += "-" * 56 + "\n"
logger.log_info(content)
if _out:
logger.log_info(content)
def create_scaffold(project_name):