Skip to content

Commit 0266156

Browse files
author
Andy Clegg
authored
Improve error message when installing non-package in package-mode
1 parent 8e441c9 commit 0266156

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/poetry/console/commands/install.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,8 @@ def handle(self) -> int:
191191
"If you do not want to install the current project"
192192
" use <c1>--no-root</c1>.\n"
193193
"If you want to use Poetry only for dependency management"
194-
" but not for packaging, you can set the operating mode to "
195-
'"non-package" in your pyproject.toml file.\n'
194+
" but not for packaging, you can disable package mode by setting"
195+
" <c1>package-mode = false</> in your pyproject.toml file.\n"
196196
"In a future version of Poetry this warning will become an error!",
197197
style="warning",
198198
)

0 commit comments

Comments
 (0)