summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorttate <ttate@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-06-08 14:38:02 +0000
committerttate <ttate@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-06-08 14:38:02 +0000
commit3f1947e8b453e9822b1034cb018ef2a320d96a0f (patch)
treea754244df08c7debfdcd8bf1ddb0afd172bea1b5
parente04c75dd68a6c8d0c5fc82610c24d65819b654cc (diff)
downloadruby-3f1947e8b453e9822b1034cb018ef2a320d96a0f.tar.gz
ruby-3f1947e8b453e9822b1034cb018ef2a320d96a0f.tar.xz
ruby-3f1947e8b453e9822b1034cb018ef2a320d96a0f.zip
if dlload fail to load a library, it should raise an error.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8594 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ext/dl/lib/dl/import.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/dl/lib/dl/import.rb b/ext/dl/lib/dl/import.rb
index c0d7df2bd..f04b0f914 100644
--- a/ext/dl/lib/dl/import.rb
+++ b/ext/dl/lib/dl/import.rb
@@ -49,7 +49,7 @@ module DL
begin
DL.dlopen(lib)
rescue DLError
- nil
+ raise(DLError, "can't load #{lib}")
end
end
}.flatten()