summaryrefslogtreecommitdiffstats
path: root/win32/win32.c
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-02-24 13:19:13 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-02-24 13:19:13 +0000
commit1f1fc6107638e9538762af4d272db13a0859e9be (patch)
tree315287f442c113709401747e3ed4bd6de05e9dd3 /win32/win32.c
parentadd63d0fd5ba2bff0c582e22ff206f70f40ebda3 (diff)
downloadruby-1f1fc6107638e9538762af4d272db13a0859e9be.tar.gz
ruby-1f1fc6107638e9538762af4d272db13a0859e9be.tar.xz
ruby-1f1fc6107638e9538762af4d272db13a0859e9be.zip
* win32/win32.c (myrename): fix error handling.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1214 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32/win32.c')
-rw-r--r--win32/win32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/win32.c b/win32/win32.c
index 8fcb5b778..0dfe3e513 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -2615,7 +2615,7 @@ myrename(const char *oldpath, const char *newpath)
newatts = GetFileAttributes(newpath);
if (oldatts == -1) {
- printf("file to move doesn't exist");
+ errno = GetLastError();
return -1;
}