Display the actual error when testing for Ruby's openssl extension (#2223)

I was encountering some build issues on MicroOS and needed the actual exception message in order to pinpoint a workaround.

Co-authored-by: Mislav Marohnić <git@mislav.net>
This commit is contained in:
Ryan S. Northrup (RyNo) 2023-08-03 07:54:27 -07:00 committed by GitHub
parent 9862a16796
commit f170c16c4a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1242,8 +1242,8 @@ build_package_verify_openssl() {
failed = %w[openssl readline zlib yaml].reject do |lib|
begin
require lib
rescue LoadError
$stderr.puts "The Ruby #{lib} extension was not compiled."
rescue LoadError => e
$stderr.puts "Loading the Ruby #{lib} extension failed (#{e})"
end
end