Skip to content

Commit 3040942

Browse files
Fix the error message when a command fails in the build process
1 parent de8f176 commit 3040942

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class BuildTask < Struct.new(:name, :target, :build_command)
7171
cmd = build_command + ["--print-ruby-cache-key"]
7272
stdout, status = Open3.capture2(*cmd)
7373
unless status.success?
74-
raise "Command failed with status (#{status.exitstatus}): #{cmd.join ""}"
74+
raise "Command failed with status (#{status.exitstatus}): #{cmd.join " "}"
7575
end
7676
require "json"
7777
@key = JSON.parse(stdout)

rakelib/packaging.rake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def npm_pkg_rubies_cache_key(pkg)
3232
chdir = pkg[:gemfile] ? File.dirname(pkg[:gemfile]) : Dir.pwd
3333
stdout, status = Open3.capture2(*cmd, chdir: chdir)
3434
unless status.success?
35-
raise "Command failed with status (#{status.exitstatus}): #{cmd.join ""}"
35+
raise "Command failed with status (#{status.exitstatus}): #{cmd.join " "}"
3636
end
3737
require "json"
3838
JSON.parse(stdout)["hexdigest"]

0 commit comments

Comments
 (0)