mirror of
https://github.com/GAM-team/GAM.git
synced 2026-06-28 18:01:36 +00:00
16 lines
465 B
Python
16 lines
465 B
Python
"""Methods related to display of information to the user."""
|
|
|
|
import sys
|
|
from var import ERROR_PREFIX
|
|
from var import WARNING_PREFIX
|
|
|
|
|
|
def print_error(message):
|
|
"""Prints a one-line error message to stderr in a standard format."""
|
|
sys.stderr.write('\n{0}{1}\n'.format(ERROR_PREFIX, message))
|
|
|
|
|
|
def print_warning(message):
|
|
"""Prints a one-line warning message to stderr in a standard format."""
|
|
sys.stderr.write('\n{0}{1}\n'.format(WARNING_PREFIX, message))
|