Skip to content

Commit

Permalink
cmd/generate-analytics-api: print stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
Bo98 committed Mar 20, 2024
1 parent 16bd913 commit 4bbd62a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/generate-analytics-api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ def run_formula_analytics(*args)
puts "brew formula-analytics #{args.join(" ")}"

retries = 0
result = Utils.popen_read(HOMEBREW_BREW_FILE, "formula-analytics", *args)
result = Utils.popen_read(HOMEBREW_BREW_FILE, "formula-analytics", *args, err: :err)

while !$CHILD_STATUS.success? && retries < MAX_RETRIES
# Give InfluxDB some more breathing room.
sleep 4**(retries+2)

retries += 1
puts "Retrying #{args.join(" ")} (#{retries}/#{MAX_RETRIES})..."
result = Utils.popen_read(HOMEBREW_BREW_FILE, "formula-analytics", *args)
result = Utils.popen_read(HOMEBREW_BREW_FILE, "formula-analytics", *args, err: :err)
end

odie "`brew formula-analytics #{args.join(" ")}` failed: #{result}" unless $CHILD_STATUS.success?
Expand Down

0 comments on commit 4bbd62a

Please sign in to comment.