From 8d92ac23d15da245404a586a48f390948e617697 Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 8 Aug 2010 21:53:02 +0000 Subject: [PATCH] * 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 --- ChangeLog | 4 ++++ dir.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index e21ad9e894..924430a590 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Mon Aug 9 06:52:59 2010 Nobuyoshi Nakada + + * dir.c (sys_warning_1): show error message. + Mon Aug 9 06:50:28 2010 Nobuyoshi Nakada * test/ruby/test_require.rb (test_require_too_long_filename): diff --git a/dir.c b/dir.c index 5c972898de..483c8beafc 100644 --- a/dir.c +++ b/dir.c @@ -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; }