MCPcopy Create free account
hub / github.com/ExpressLRS/ExpressLRS / print_error

Function print_error

src/python/build_flags.py:19–28  ·  view source on GitHub ↗
(error)

Source from the content-addressed store, hash-verified

17isRX = True if '_RX_' in target_name else False
18
19def print_error(error):
20 time.sleep(1)
21 sys.stdout.write("\n\n\033[47;31m%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n")
22 sys.stdout.write("\033[47;31m!!! ExpressLRS Warning Below !!!\n")
23 sys.stdout.write("\033[47;31m%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n")
24 sys.stdout.write("\033[47;30m %s \n" % error)
25 sys.stdout.write("\033[47;31m%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n\n\n")
26 sys.stdout.flush()
27 time.sleep(3)
28 raise Exception('!!! %s !!!' % error)
29
30
31def dequote(str):

Callers 1

build_flags.pyFile · 0.85

Calls 2

writeMethod · 0.45
flushMethod · 0.45

Tested by

no test coverage detected