Output a fatal error message and exit the program.
(msg)
| 24 | LABEL_STATIC = '**classmethod** ' |
| 25 | |
| 26 | def Error(msg): |
| 27 | """Output a fatal error message and exit the program.""" |
| 28 | print("Error: %s" % msg, flush=True) |
| 29 | if __debugMode: |
| 30 | traceback.print_stack() |
| 31 | sys.stderr.flush() |
| 32 | sys.exit(1) |
| 33 | |
| 34 | def Warn(msg): |
| 35 | """Output a nonfatal error message.""" |
no test coverage detected