Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasrockhu-codecov committed Aug 17, 2021
1 parent f515e31 commit fc5c283
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions lib/codecov/uploader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,15 @@ def self.upload(report, disable_net_blockers = true)
response = false
end

report['result'] = { 'uploaded' => false } unless response
report['result'] = JSON.parse(response)
handle_report_response(report)

net_blockers(:on) if disable_net_blockers

raise StandardError.new 'Could not upload reports to Codecov' unless (response || ::Codecov.pass_ci_if_error)
unless response
report['result'] = { 'uploaded' => false }
raise StandardError.new 'Could not upload reports to Codecov' unless ::Codecov.pass_ci_if_error
return report
end
report['result'] = JSON.parse(response)
handle_report_response(report)
report
end

Expand Down

0 comments on commit fc5c283

Please sign in to comment.