1
0
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:
Kelly Brazil
2021-03-29 11:42:01 -07:00
parent 36c1120136
commit 7515218ddd
2 changed files with 10 additions and 14 deletions

View File

@ -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):