Skip to content

Commit fb4db7f

Browse files
Catch LoadError in ruby (#343)
1 parent 42635c4 commit fb4db7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ruby/lib/okapi.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def self.load_native_library
6161
full_path = File.expand_path(File.join(library_path, library_name)) unless library_path.nil?
6262
begin
6363
ffi_lib full_path
64-
rescue
64+
rescue LoadError
6565
# Get the environment variable RUBY_DLL_PATH on all platforms as a failsafe, MacOS system integrity protection, I'm looking at you.
6666
full_path = File.expand_path(File.join(ENV['RUBY_DLL_PATH'], library_name))
6767
ffi_lib full_path

0 commit comments

Comments
 (0)