diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | file.c | 3 |
2 files changed, 9 insertions, 0 deletions
@@ -1,3 +1,9 @@ +Sat Dec 21 13:00:20 2013 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * file.c: remove unnecessary the source path from EEXIST error + messages and show the destination path only. [ruby-core:59202] + [Feature #9263] + Sat Dec 21 12:37:19 2013 Nobuyoshi Nakada <nobu@ruby-lang.org> * lib/resolv.rb (Resolv::Hosts#lazy_initialize): should not @@ -2510,6 +2510,9 @@ sys_fail2(VALUE s1, VALUE s2) const int max_pathlen = MAXPATHLEN; #endif + if (errno == EEXIST) { + rb_sys_fail_path(rb_str_ellipsize(s2, max_pathlen)); + } str = rb_str_new_cstr("("); rb_str_append(str, rb_str_ellipsize(s1, max_pathlen)); rb_str_cat2(str, ", "); |