summaryrefslogtreecommitdiff
path: root/ext
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
commitc2e1ef22b91caab1167893f67ded18a747c581bb (patch)
treea754244df08c7debfdcd8bf1ddb0afd172bea1b5 /ext
parent8d5e6a0fc68dbea9b7182d8e8dd9ac4a5b65af57 (diff)
if dlload fail to load a library, it should raise an error.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8594 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-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 c0d7df2bdb..f04b0f9142 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()