Skip to content

Commit

Permalink
fix readable path check error message
Browse files Browse the repository at this point in the history
  • Loading branch information
shadchin authored and davidism committed Mar 31, 2022
1 parent 456fbb6 commit 92cebe9
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 92cebe9

Please sign in to comment.