osxdocker.utils.warn¶
-
osxdocker.utils.warn(message, debug=False)¶ Helper function to either print an error, or raise an exception for a full stack trace.
- Parameters
message (
str) – error message to print.debug (
bool) – flag to either thrown an exception, or print the message and exit. Default: False
- Raises
Exception – if debug is True, to provide a full trace
SystemExit – if debug is False, to return a non-zero status indicating the original command failed