mirror of
https://github.com/NinjaCheetah/WiiPy.git
synced 2026-02-17 02:25:39 -05:00
Rewrote error output to be much clearer, no longer raises Python exceptions
This commit is contained in:
9
modules/core.py
Normal file
9
modules/core.py
Normal file
@@ -0,0 +1,9 @@
|
||||
# "modules/core.py" from WiiPy by NinjaCheetah
|
||||
# https://github.com/NinjaCheetah/WiiPy
|
||||
|
||||
import sys
|
||||
|
||||
|
||||
def fatal_error(msg: str) -> None:
|
||||
print(f"\033[31mError:\033[0m {msg}")
|
||||
sys.exit(-1)
|
||||
Reference in New Issue
Block a user