improve exception notification

This commit is contained in:
debugtalk
2017-06-22 23:13:59 +08:00
parent 3fd53b4448
commit 4267e369c5

View File

@@ -13,7 +13,7 @@ class TestRunner(object):
url = req_kwargs.pop('url')
method = req_kwargs.pop('method')
except KeyError:
raise exception.ParamsError("Params Error")
raise exception.ParamsError("URL or METHOD missed!")
resp_obj = self.client.request(url=url, method=method, **req_kwargs)
diff_content = utils.diff_response(resp_obj, testcase['response'])