Skip to content

Commit ad3680e

Browse files
authored
Fix path in "Node is dir" error message (#561)
1 parent 7fa5e9a commit ad3680e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/_pytask/collect.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ def pytask_collect_node(session: Session, path: Path, node_info: NodeInfo) -> PN
444444
name = shorten_path(node, session.config["paths"] or (session.config["root"],))
445445

446446
if isinstance(node, Path) and node.is_dir():
447-
raise ValueError(_TEMPLATE_ERROR_DIRECTORY.format(path=path))
447+
raise ValueError(_TEMPLATE_ERROR_DIRECTORY.format(path=node))
448448

449449
return PathNode(name=name, path=node)
450450

0 commit comments

Comments
 (0)