From 3040942a391fc4f0c8f6f5cd51747366d4689db6 Mon Sep 17 00:00:00 2001 From: Yuta Saito Date: Sun, 2 Jun 2024 16:14:10 +0000 Subject: [PATCH] Fix the error message when a command fails in the build process --- Rakefile | 2 +- rakelib/packaging.rake | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Rakefile b/Rakefile index 32166effc1..7abb758c6e 100644 --- a/Rakefile +++ b/Rakefile @@ -71,7 +71,7 @@ class BuildTask < Struct.new(:name, :target, :build_command) cmd = build_command + ["--print-ruby-cache-key"] stdout, status = Open3.capture2(*cmd) unless status.success? - raise "Command failed with status (#{status.exitstatus}): #{cmd.join ""}" + raise "Command failed with status (#{status.exitstatus}): #{cmd.join " "}" end require "json" @key = JSON.parse(stdout) diff --git a/rakelib/packaging.rake b/rakelib/packaging.rake index 5ec09ef3f1..bc7bf01576 100644 --- a/rakelib/packaging.rake +++ b/rakelib/packaging.rake @@ -32,7 +32,7 @@ def npm_pkg_rubies_cache_key(pkg) chdir = pkg[:gemfile] ? File.dirname(pkg[:gemfile]) : Dir.pwd stdout, status = Open3.capture2(*cmd, chdir: chdir) unless status.success? - raise "Command failed with status (#{status.exitstatus}): #{cmd.join ""}" + raise "Command failed with status (#{status.exitstatus}): #{cmd.join " "}" end require "json" JSON.parse(stdout)["hexdigest"]