1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

tool/extlibs.rb: Use Exception#message for older rubies

This script runs with BASERUBY, which can be as old as 2.2.x.
Exception#full_message is new in 2.5.0.

I saw a NoMethodError on the AppVeyor CI where BASERUBY is 2.4.6:
https://ci.appveyor.com/project/ruby/ruby/builds/43870654/job/kae4uo2xbhuhqmdw#L121
This commit is contained in:
Alan Wu 2022-06-17 18:13:19 -04:00
parent 41a024f2b9
commit 4b7c4bb92e

View file

@ -227,7 +227,7 @@ class ExtLibs
begin
extracted = do_command(mode, dest, url, cache_dir, chksums)
rescue => e
warn e.full_message
warn defined?(e.full_message) ? e.full_message : e.message
success = false
end
url = chksums = nil