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

Commit

Permalink
Check reponse
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasrockhu-codecov committed Aug 17, 2021
1 parent e1ccea1 commit f515e31
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/codecov/uploader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ def self.upload(report, disable_net_blockers = true)
handle_report_response(report)

net_blockers(:on) if disable_net_blockers
raise Error.new 'Could not upload reports to Codecov' unless ::Codecov.pass_ci_if_error

raise StandardError.new 'Could not upload reports to Codecov' unless (response || ::Codecov.pass_ci_if_error)
report
end

Expand Down

0 comments on commit f515e31

Please sign in to comment.