Skip to content

Commit 865e928

Browse files
authored
add useful information to error message (#10367)
1 parent b0a982e commit 865e928

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/poetry/inspection/info.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def to_package(
129129
name = name or self.name
130130

131131
if not name:
132-
raise RuntimeError("Unable to create package with no name")
132+
raise RuntimeError(f"Unable to create package with no name for {root_dir}")
133133

134134
if not self.version:
135135
# The version could not be determined, so we raise an error since it is

0 commit comments

Comments
 (0)