MCPcopy
hub / github.com/lra/mackup / error

Function error

src/mackup/utils.py:199–208  ·  view source on GitHub ↗

Throw an error with the given message and immediately quit. Args: message(str): The message to display.

(message: str)

Source from the content-addressed store, hash-verified

197
198
199def error(message: str) -> NoReturn:
200 """
201 Throw an error with the given message and immediately quit.
202
203 Args:
204 message(str): The message to display.
205 """
206 fail: str = "\033[91m"
207 end: str = "\033[0m"
208 sys.exit(fail + f"Error: {message}" + end)
209
210
211def get_dropbox_folder_location() -> str:

Callers 5

_best_config_pathMethod · 0.85
_warn_on_old_configMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected