dont exit on user error

This commit is contained in:
matthias@arch 2023-12-16 00:01:29 +01:00
parent 8f8e6bdbc5
commit 15578b4d3c

View File

@ -13,9 +13,8 @@ def error(*args, exitcode=1, **kwargs):
print("\033[31mError: \033[0m", *args, **kwargs) print("\033[31mError: \033[0m", *args, **kwargs)
exit(exitcode) exit(exitcode)
def user_error(*args, exitcode=1, **kwargs): def user_error(*args, **kwargs):
print("\033[31mError: \033[0m", *args, **kwargs) print("\033[31mError: \033[0m", *args, **kwargs)
exit(exitcode)
def warning(*args, **kwargs): def warning(*args, **kwargs):
print("\033[33mWarning: \033[0m", *args, **kwargs) print("\033[33mWarning: \033[0m", *args, **kwargs)