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

Commit

Permalink
Merge pull request #329 from codecov/fix-v4-response
Browse files Browse the repository at this point in the history
fix: Test if response has two lines
  • Loading branch information
thomasrockhu authored Jul 19, 2021
2 parents 0ca520b + f4d24cc commit 191b060
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions lib/codecov.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,8 @@ var sendToCodecovV4 = function (
on_success,
on_failure
)
} else if (result.split('\n').length !== 2) {
console.log(' Could not upload to Codecov: ' + result)
} else {
var codecov_report_url = result.split('\n')[0]
request(
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 191b060

Please sign in to comment.