Skip to content

Commit

Permalink
radon-h2020/radon-ctt#46 Added more detailed debug output.
Browse files Browse the repository at this point in the history
  • Loading branch information
duelle committed Mar 30, 2021
1 parent 0717093 commit 1960855
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion jmeter/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,15 @@ def configuration_create():
current_app.logger.error(f'\'test_plan\' could not be found in {test_plan_path}.')
raise FileNotFoundError(f'\'test_plan\' could not be found in {test_plan_path}.')
else:
return 'No test resources and/or JMX file name provided.', status.HTTP_400_BAD_REQUEST
if 'resources' not in request.files:
error_str = f'\'resources\' could not be found in \'request.files\''
elif 'jmx_file_name' not in request.form:
error_str = f'\'jmx_file_name\' could not be found in \'request.form\''
else:
error_str = f'No test resources and/or JMX file name provided.', status.HTTP_400_BAD_REQUEST

current_app.logger.error(error_str)
raise FileNotFoundError(error_str)

# Properties file
if 'properties' in request.files:
Expand Down

0 comments on commit 1960855

Please sign in to comment.