Skip to content

Commit

Permalink
specify lock file in error message
Browse files Browse the repository at this point in the history
  • Loading branch information
KotlinIsland committed Dec 4, 2023
1 parent 0578ed8 commit 9638c77
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/poetry/installation/installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,12 +245,12 @@ def _do_install(self) -> int:
locked_repository = self._locker.locked_repository()

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

locker_extras = {
Expand Down

0 comments on commit 9638c77

Please sign in to comment.