Unverified Commit f170c16c authored by Ryan S. Northrup (RyNo)'s avatar Ryan S. Northrup (RyNo) Committed by GitHub
Browse files

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: default avatarMislav Marohnić <git@mislav.net>
parent 9862a167
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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