Skip to content

Commit 8f5b542

Browse files
committed
Improved config key not found msg
1 parent 22cb9dd commit 8f5b542

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
@@ -32,7 +32,7 @@ def debug(msg, cli=None, *args, **kwargs):
3232
data = colors.gry
3333
if cli:
3434
if getattr(cli, 'debug_key', None):
35-
data += str(getattr(cli.config, cli.debug_key, f'Key "{cli.debug_key}" not found'))
35+
data += str(getattr(cli.config, cli.debug_key, f'cli.config key "{cli.debug_key}" not found'))
3636
else:
3737
data += str(cli.config)
3838
print(f'\n{colors.by}DEBUG: {msg.format(data, *args, **kwargs)}{colors.nc}')

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def debug(msg, cli=None, *args, **kwargs):
3232
data = colors.gry
3333
if cli:
3434
if getattr(cli, 'debug_key', None):
35-
data += str(getattr(cli.config, cli.debug_key, f'Key "{cli.debug_key}" not found'))
35+
data += str(getattr(cli.config, cli.debug_key, f'cli.config key "{cli.debug_key}" not found'))
3636
else:
3737
data += str(cli.config)
3838
print(f'\n{colors.by}DEBUG: {msg.format(data, *args, **kwargs)}{colors.nc}')

0 commit comments

Comments
 (0)