diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | lib/fileutils.rb | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Mon Mar 12 20:08:16 2012 Tanaka Akira <akr@fsij.org> + + * lib/fileutils.rb (fu_have_symlink?): specify TypeError for rescue + clause. + Mon Mar 12 19:23:13 2012 Nobuyoshi Nakada <nobu@ruby-lang.org> * encoding.c (rb_find_encoding): new function find encoding from diff --git a/lib/fileutils.rb b/lib/fileutils.rb index 9857b411a1..84bd6b968c 100644 --- a/lib/fileutils.rb +++ b/lib/fileutils.rb @@ -816,7 +816,7 @@ private File.symlink nil, nil rescue NotImplementedError return false - rescue + rescue TypeError return true end |