1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* dir.c (sys_warning_1): show error message.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28931 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2010-08-08 21:53:02 +00:00
parent 22223dc6dd
commit 8d92ac23d1
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Mon Aug 9 06:52:59 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* dir.c (sys_warning_1): show error message.
Mon Aug 9 06:50:28 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* test/ruby/test_require.rb (test_require_too_long_filename):

2
dir.c
View file

@ -992,7 +992,7 @@ dir_s_rmdir(VALUE obj, VALUE dir)
static VALUE
sys_warning_1(VALUE mesg)
{
rb_sys_warning("%s", (const char *)mesg);
rb_sys_warning("%s:%s", strerror(errno), (const char *)mesg);
return Qnil;
}