Skip to main content

Improve error message

ID
a16c75c
date
2025-01-21 11:13:32+00:00
author
Alex Chan <alex@alexwlchan.net>
parent
689f9c1
message
Improve error message
changed files
1 file, 1 addition, 1 deletion

Changed files

expansions/get_file_paths.py (673) → expansions/get_file_paths.py (682)

diff --git a/expansions/get_file_paths.py b/expansions/get_file_paths.py
index cb8168d..4465743 100644
--- a/expansions/get_file_paths.py
+++ b/expansions/get_file_paths.py
@@ -9,7 +9,7 @@ def get_file_paths_under(
     Generates the absolute paths to every matching file under ``root``.
     """
     if root.exists() and not root.is_dir():
-        raise ValueError(f"Cannot find files under file: {root!r}")
+        raise ValueError(f"Cannot find files under non-directory: {root!r}")
 
     if not root.is_dir():
         raise FileNotFoundError(root)