Skip to content

Commit

Permalink
updating error checker
Browse files Browse the repository at this point in the history
  • Loading branch information
DanHert committed Aug 1, 2023
1 parent 8198094 commit bc43c70
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions miscellaneous/scripts/uav_check/helper_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,9 @@ def print_dual(text):
if str(resp.value.integer) in data[i]['valid_values'] or str(resp.value.real) in data[i]['valid_values']:
print_dual("Parameter " + i + GREEN + " PASS" + END)
else:
print_dual("Parameter " + i + RED + " FAIL" + END)
print_dual(RED + BOLD + data[i]['error_message'] + END)
print_dual("Parameter " + i + RED + " FAIL " + END + BOLD + " " + data[i]['error_message'] + END)
else:
print_dual(RED + BOLD + "Failed to check parameter " + i + END)
print_dual(RED + BOLD + "Failed to check parameter " + i + END + BOLD + " " + data[i]['error_message'] + END)


print_dual("-----------------Check Finished-----------------------")

0 comments on commit bc43c70

Please sign in to comment.