Skip to content

Commit 2bbbbee

Browse files
committed
Make the check_executable warning easier to understand.
1 parent dc71771 commit 2bbbbee

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tools/msftidy.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ def error(txt, line=0)
5959
##
6060

6161
def check_executable
62-
warn("File is not executable") if not File.executable?(@name)
62+
if not File.executable?(@name)
63+
warn("File is not executable. Double check your file type and permissions.")
64+
end
6365
end
6466

6567
def test_old_rubies(f_rel)

0 commit comments

Comments
 (0)