crew: show env hash expanded when showing Kernel.system errors (#6577)

This commit is contained in:
Satadru Pramanik
2022-01-10 09:27:44 -05:00
committed by GitHub
parent 0509fc9a6d
commit 7656bf1642
2 changed files with 2 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
# Defines common constants used in different parts of crew
CREW_VERSION = '1.21.2'
CREW_VERSION = '1.21.3'
ARCH_ACTUAL = `uname -m`.chomp
# This helps with virtualized builds on aarch64 machines

View File

@@ -142,7 +142,7 @@ class Package
exitstatus = $?.exitstatus
# print failed line number and error message
puts "#{e.backtrace[1]}: #{e.message}".orange
raise InstallError, "`#{env} #{cmd_args}` exited with #{exitstatus}"
raise InstallError, "`#{env.map {|k, v| "#{k}=\"#{v}\"" } .join(' ')} #{cmd_args}` exited with #{exitstatus}"
end
end
end