summaryrefslogtreecommitdiff
path: root/error.c
diff options
context:
space:
mode:
Diffstat (limited to 'error.c')
-rw-r--r--error.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/error.c b/error.c
index e0c6a44b2f..b8f9f06654 100644
--- a/error.c
+++ b/error.c
@@ -1908,9 +1908,9 @@ rb_sys_warning(const char *fmt, ...)
}
void
-rb_load_fail(const char *path)
+rb_load_fail(VALUE path)
{
- rb_loaderror_with_path(rb_str_new2(path), "%s -- %s", strerror(errno), path);
+ rb_loaderror_with_path(path, "%s -- %s", strerror(errno), RSTRING_PTR(path));
}
void