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
This commit is contained in:
parent
8d5e6a0fc6
commit
c2e1ef22b9
@ -49,7 +49,7 @@ module DL
|
|||||||
begin
|
begin
|
||||||
DL.dlopen(lib)
|
DL.dlopen(lib)
|
||||||
rescue DLError
|
rescue DLError
|
||||||
nil
|
raise(DLError, "can't load #{lib}")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
}.flatten()
|
}.flatten()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user