Unify stderr/stdout of faaso_run

This commit is contained in:
Roberto Alsina 2024-07-06 21:20:20 -03:00
parent 6ff67e0190
commit 125870d0a8

View File

@ -130,7 +130,8 @@ module Funko
Log.info { "Running faaso [#{args.join(", ")}, -l]" }
Process.run(
command: "faaso",
args: args + ["-l"], # Always local in the server
args: args + ["-l", "2>&1"], # Always local in the server
shell: true,
) do |process|
loop do
env.response.print process.output.gets(chomp: false)
@ -138,7 +139,6 @@ module Funko
Fiber.yield
break if process.terminated?
end
p! process.error.peek
true
end
# FIXME: find a way to raise an exception on failure