From 4b7c4bb92e6c760c721fa27351f7845b39a18e37 Mon Sep 17 00:00:00 2001 From: Alan Wu Date: Fri, 17 Jun 2022 18:13:19 -0400 Subject: [PATCH] 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 --- tool/extlibs.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tool/extlibs.rb b/tool/extlibs.rb index 5d1a2db143..b482258a2c 100755 --- a/tool/extlibs.rb +++ b/tool/extlibs.rb @@ -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