diff options
author | ttate <ttate@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-06-08 14:38:02 +0000 |
---|---|---|
committer | ttate <ttate@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-06-08 14:38:02 +0000 |
commit | c2e1ef22b91caab1167893f67ded18a747c581bb (patch) | |
tree | a754244df08c7debfdcd8bf1ddb0afd172bea1b5 /ext | |
parent | 8d5e6a0fc68dbea9b7182d8e8dd9ac4a5b65af57 (diff) | |
download | ruby-c2e1ef22b91caab1167893f67ded18a747c581bb.tar.gz |
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.rb | 2 |
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() |