mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-06-19 00:17:51 +02:00
use jc.utils for all warning and error messages. simply error and warning formatting.
This commit is contained in:
16
jc/utils.py
16
jc/utils.py
@ -15,13 +15,11 @@ def warning_message(message):
|
||||
|
||||
Returns:
|
||||
|
||||
no return, just prints output to STDERR
|
||||
None - just prints output to STDERR
|
||||
"""
|
||||
|
||||
error_string = f'''
|
||||
jc: Warning - {message}
|
||||
'''
|
||||
print(textwrap.dedent(error_string), file=sys.stderr)
|
||||
error_string = f'jc: Warning - {message}'
|
||||
print(error_string, file=sys.stderr)
|
||||
|
||||
|
||||
def error_message(message):
|
||||
@ -34,13 +32,11 @@ def error_message(message):
|
||||
|
||||
Returns:
|
||||
|
||||
no return, just prints output to STDERR
|
||||
None - just prints output to STDERR
|
||||
"""
|
||||
|
||||
error_string = f'''
|
||||
jc: Error - {message}
|
||||
'''
|
||||
print(textwrap.dedent(error_string), file=sys.stderr)
|
||||
error_string = f'jc: Error - {message}'
|
||||
print(error_string, file=sys.stderr)
|
||||
|
||||
|
||||
def compatibility(mod_name, compatible):
|
||||
|
Reference in New Issue
Block a user