mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 19:11:14 +08:00
DEV: Fix command error message formatting (#31491)
a follow up to 51b0903f514c3c22569401e74ebd1215c317d787
This commit is contained in:
@ -169,7 +169,7 @@ module Discourse
|
||||
stdout, stderr, status = Open3.capture3(*args, chdir: chdir)
|
||||
|
||||
if !status.exited? || !success_status_codes.include?(status.exitstatus)
|
||||
message = [command, failure_message, stderr].filter(&:present?).join("\n")
|
||||
message = [command.join(" "), failure_message, stderr].filter(&:present?).join("\n")
|
||||
raise CommandError.new(message, stdout: stdout, stderr: stderr, status: status)
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user