Skip to content

Commit

Permalink
Fix the error message when a command fails in the build process
Browse files Browse the repository at this point in the history
  • Loading branch information
kateinoigakukun committed Jun 2, 2024
1 parent de8f176 commit 3040942
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion rakelib/packaging.rake
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit 3040942

Please sign in to comment.