From c2e1ef22b91caab1167893f67ded18a747c581bb Mon Sep 17 00:00:00 2001 From: ttate Date: Wed, 8 Jun 2005 14:38:02 +0000 Subject: 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 --- ext/dl/lib/dl/import.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- cgit v1.2.3