mirror of
https://github.com/rbenv/ruby-build.git
synced 2025-10-29 00:01:22 +01:00
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:
parent
9862a16796
commit
f170c16c4a
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue