Skip to content

Commit 5f7dc4f

Browse files
mamehsbt
authored andcommitted
Do not include a backtick in error messages and backtraces
[Feature #16495]
1 parent 577fd38 commit 5f7dc4f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/fileutils.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1651,7 +1651,7 @@ def user_mask(target) #:nodoc:
16511651
when "a"
16521652
mask | 07777
16531653
else
1654-
raise ArgumentError, "invalid `who' symbol in file mode: #{chr}"
1654+
raise ArgumentError, "invalid 'who' symbol in file mode: #{chr}"
16551655
end
16561656
end
16571657
end
@@ -1705,7 +1705,7 @@ def symbolic_modes_to_i(mode_sym, path) #:nodoc:
17051705
copy_mask = user_mask(chr)
17061706
(current_mode & copy_mask) / (copy_mask & 0111) * (user_mask & 0111)
17071707
else
1708-
raise ArgumentError, "invalid `perm' symbol in file mode: #{chr}"
1708+
raise ArgumentError, "invalid 'perm' symbol in file mode: #{chr}"
17091709
end
17101710
end
17111711

0 commit comments

Comments
 (0)