Skip to content

Commit

Permalink
fix: correct printing of errors
Browse files Browse the repository at this point in the history
Instead of printing err (which is a handle to rich formatter)
we print errors - which are the real output of the failed command.

Signed-off-by: Oz Tiram <oz.tiram@gmail.com>
  • Loading branch information
oz123 committed Jan 10, 2025
1 parent f15af7e commit 13c13ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pipenv/utils/resolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,7 @@ def resolve(cmd, st, project):
st.console.print(environments.PIPENV_SPINNER_FAIL_TEXT.format("Locking Failed!"))
err.print(out.strip())
if not is_verbose:
err.print(err)
err.print(errors)
raise RuntimeError("Failed to lock Pipfile.lock!")
if is_verbose:
err.print(out.strip())
Expand Down

0 comments on commit 13c13ed

Please sign in to comment.