CLI: Change wording for missing config file

This commit is contained in:
deajan 2025-03-08 11:48:15 +01:00
parent dc407a4aff
commit c19124cfdc
2 changed files with 2 additions and 2 deletions

View file

@ -380,7 +380,7 @@ This is free software, and you are welcome to redistribute it under certain cond
if args.config_file:
if not os.path.isfile(args.config_file):
msg = f"Config file {args.config_file} cannot be read."
msg = f"Config file {args.config_file} cannot be read or does not exist"
json_error_logging(False, msg, "critical")
sys.exit(70)
config_file = Path(args.config_file).absolute()

View file

@ -113,7 +113,7 @@ def test_npbackup_cli_wrong_config_path():
__main__.main()
except SystemExit:
print(str(logs))
assert "Config file npbackup-non-existent.conf cannot be read" in str(
assert "Config file npbackup-non-existent.conf cannot be read or does not exist" in str(
logs
), "There should be a critical error when config file is not given"