Skip to content

Commit 7c332b4

Browse files
committed
Fix format_for_error for remote URL candidates
1 parent 76058d1 commit 7c332b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pip/_internal/resolution/resolvelib/candidates.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def format_for_error(self):
168168
return "{} {} (from {})".format(
169169
self.name,
170170
self.version,
171-
self.link.file_path
171+
self.link.file_path if self.link.is_file else self.link
172172
)
173173

174174
def _prepare_abstract_distribution(self):

0 commit comments

Comments
 (0)