From f170c16c4a6ed690b82511c4e18c047eb17b009d Mon Sep 17 00:00:00 2001 From: "Ryan S. Northrup (RyNo)" Date: Thu, 3 Aug 2023 07:54:27 -0700 Subject: [PATCH] Display the actual error when testing for Ruby's openssl extension (#2223) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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ć --- bin/ruby-build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/ruby-build b/bin/ruby-build index 0932c7db..5063ab8c 100755 --- a/bin/ruby-build +++ b/bin/ruby-build @@ -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