Skip to content

Commit

Permalink
Merge pull request #2236 from shadchin/patch-1
Browse files Browse the repository at this point in the history
Fix incorrect error message for readable path check
  • Loading branch information
davidism authored Mar 31, 2022
2 parents 456fbb6 + 92cebe9 commit a66119a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ Version 8.1.2

Unreleased

- Fix error message for readable path check that was mixed up with the
executable check. :pr:`2236`


Version 8.1.1
-------------
Expand Down
2 changes: 1 addition & 1 deletion src/click/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -884,7 +884,7 @@ def convert(

if self.readable and not os.access(rv, os.R_OK):
self.fail(
_("{name} {filename!r} is not executable.").format(
_("{name} {filename!r} is not readable.").format(
name=self.name.title(), filename=os.fsdecode(value)
),
param,
Expand Down

0 comments on commit a66119a

Please sign in to comment.