Skip to content

Commit 74c4bf1

Browse files
committed
Do not hide original error
1 parent a5f901c commit 74c4bf1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/concurrent/utility/native_extension_loader.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ def load_native_extensions
5858
begin
5959
require 'concurrent_ruby_ext'
6060
set_java_extensions_loaded
61-
rescue LoadError
61+
rescue LoadError => e
6262
# move on with pure-Ruby implementations
63-
raise 'On JRuby but Java extensions failed to load.'
63+
raise RuntimeError, "On JRuby but Java extensions failed to load.\n" + e.message, e.backtrace
6464
end
6565
end
6666
end

0 commit comments

Comments
 (0)