Skip to content

Commit 5e530c0

Browse files
committed
refactor: improve error message with yaml (#82)
1 parent 08e0798 commit 5e530c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sshgen/utils/file.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def get_hosts_path(file_path: str) -> Path:
1616
CommonUtils.check_and_exit(resolved_path.exists(),
1717
f'Ansible hosts file does not exists at {resolved_path}. Exiting...')
1818
CommonUtils.check_and_exit(FileUtils.is_yaml_file(resolved_path),
19-
'Ansible hosts file is not a yaml file. Valid extensions are: yaml or yml.'
19+
'Ansible hosts file is not a yaml file. Valid extensions are: yaml or yml. '
2020
'Exiting...')
2121
CommonUtils.check_and_exit(not FileUtils.is_empty(resolved_path),
2222
f'Ansible hosts file {resolved_path} is empty. Exiting...')

0 commit comments

Comments
 (0)