Clarify error message to mention patterns, not just excludes (#947).
All checks were successful
build / test (push) Successful in 5m59s
build / docs (push) Successful in 1m54s

This commit is contained in:
Dan Helfman 2025-01-10 08:41:56 -08:00
parent 0b9f3ae8a1
commit 8573660ff0

View File

@ -206,7 +206,7 @@ def collect_special_file_paths(
if not skip_paths:
raise ValueError(
f'The runtime directory {os.path.normpath(borgmatic_runtime_directory)} overlaps with the configured excludes. Please remove it from excludes or change the runtime directory.'
f'The runtime directory {os.path.normpath(borgmatic_runtime_directory)} overlaps with the configured excludes or patterns. Please remove it from excludes/patterns or change the runtime directory.'
)
return tuple(