From 3f1947e8b453e9822b1034cb018ef2a320d96a0f 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: http://svn.ruby-lang.org/repos/ruby/trunk@8594 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/dl/lib/dl/import.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/dl') 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() -- cgit