Skip to content

Commit 9638c77

Browse files
committed
specify lock file in error message
1 parent 0578ed8 commit 9638c77

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/poetry/installation/installer.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -245,12 +245,12 @@ def _do_install(self) -> int:
245245
locked_repository = self._locker.locked_repository()
246246

247247
if not self._locker.is_fresh():
248-
self._io.write_error_line(
249-
"<warning>"
250-
"Warning: poetry.lock is not consistent with pyproject.toml. "
248+
raise ValueError(
249+
"<error>"
250+
"Error: poetry.lock is not consistent with pyproject.toml. "
251251
"You may be getting improper dependencies. "
252252
"Run `poetry lock [--no-update]` to fix it."
253-
"</warning>"
253+
"</error>"
254254
)
255255

256256
locker_extras = {

0 commit comments

Comments
 (0)