summaryrefslogtreecommitdiff
path: root/load.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-03-07 07:30:31 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-03-07 07:30:31 +0000
commit075d98c7dc0cee294f03ed0ed26e1e8d8876b2b9 (patch)
tree9e8837ee94ededc62b66b5c4f7a97e9477ba4d0a /load.c
parent8e07edf364398a9843dc939ec7e5ec7acdf62b95 (diff)
* error.c (rb_load_fail): should honor encoding.
* load.c (load_failed): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34944 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'load.c')
-rw-r--r--load.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/load.c b/load.c
index 3d877a83c9..18651dd3a2 100644
--- a/load.c
+++ b/load.c
@@ -588,12 +588,10 @@ search_required(VALUE fname, volatile VALUE *path, int safe_level)
return type ? 's' : 'r';
}
-void rb_loaderror_with_path(VALUE path, const char *fmt, ...);
-
static void
load_failed(VALUE fname)
{
- rb_loaderror_with_path(fname, "cannot load such file -- %s", RSTRING_PTR(fname));
+ rb_load_fail(fname, "cannot load such file");
}
static VALUE