Skip to content

Commit 02b7dc1

Browse files
committed
Condensed log.cmd_docs_url_exit()
1 parent 8904c61 commit 02b7dc1

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

  • remove-json-keys/src/remove_json_keys/lib
  • translate-messages/src/translate_messages/lib

remove-json-keys/src/remove_json_keys/lib/log.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def version(cli):
3434
def warn(msg, *args, **kwargs) : print(f'\n{colors.bo}WARNING: {msg.format(*args, **kwargs)}{colors.nc}')
3535

3636
def cmd_docs_url_exit(cli, msg='', cmd='help'):
37-
if msg : print(f'\n{colors.br}ERROR: {msg}')
37+
if msg : error(msg)
3838
help_cmd(cli) if cmd == 'help' else init_cmd(cli)
3939
docs_url(cli)
4040
sys.exit(1)

translate-messages/src/translate_messages/lib/log.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def version(cli):
3434
def warn(msg, *args, **kwargs) : print(f'\n{colors.bo}WARNING: {msg.format(*args, **kwargs)}{colors.nc}')
3535

3636
def cmd_docs_url_exit(cli, msg='', cmd='help'):
37-
if msg : print(f'\n{colors.br}ERROR: {msg}')
37+
if msg : error(msg)
3838
help_cmd(cli) if cmd == 'help' else init_cmd(cli)
3939
docs_url(cli)
4040
sys.exit(1)

0 commit comments

Comments
 (0)