MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / exit_with_error

Function exit_with_error

device.py:25–27  ·  view source on GitHub ↗
(message)

Source from the content-addressed store, hash-verified

23 print(f"{SHELL_COLOR_RED}ERROR: {message}{SHELL_COLOR_RESET}")
24
25def exit_with_error(message):
26 print_error(message)
27 sys.exit(1)
28
29def print_help():
30 print("Usage: python device.py [device_id] [arguments]\n\n")

Callers 8

read_device_propertiesFunction · 0.70
get_property_or_exitFunction · 0.70
safe_intFunction · 0.70
safe_floatFunction · 0.70
write_partition_tableFunction · 0.70
write_flash_variablesFunction · 0.70
write_lvgl_variablesFunction · 0.70
mainFunction · 0.70

Calls 1

print_errorFunction · 0.70

Tested by

no test coverage detected