Skip to content

Commit 9e8199c

Browse files
authored
Print keymap name within new-keymap error message (qmk#26034)
1 parent 7bea08c commit 9e8199c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/python/qmk/cli/new/keymap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def new_keymap(cli):
126126
return False
127127

128128
if not validate_keymap_name(user_name):
129-
cli.log.error('Keymap names must contain only {fg_cyan}a-z{fg_reset}, {fg_cyan}0-9{fg_reset} and {fg_cyan}_{fg_reset}! Please choose a different name.')
129+
cli.log.error(f'Keymap name {{fg_cyan}}{user_name}{{fg_reset}} must contain only {{fg_cyan}}a-z{{fg_reset}}, {{fg_cyan}}0-9{{fg_reset}} and {{fg_cyan}}_{{fg_reset}}! Please choose a different name.')
130130
return False
131131

132132
if keymap_path_new.exists():

0 commit comments

Comments
 (0)