Skip to content

Commit

Permalink
run_test.py: More useful error message if transform failed
Browse files Browse the repository at this point in the history
  • Loading branch information
ypid-geberit committed Jun 25, 2020
1 parent 7d2ff31 commit 0c48062
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Alerting/Sample Watches/run_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def load_file(serialized_file):
if len(response['watch_record']['result']['actions']) == 0:
if response['watch_record']['result']['transform']['status'] == 'failure':
print("No actions where taken because transform failed: {}".format(
response['watch_record']['result']['transform']['reason']
json.dumps(response['watch_record']['result']['transform'], sort_keys=True, indent=2)
))
else:
print("No actions where taken: {}".format(
Expand Down

0 comments on commit 0c48062

Please sign in to comment.