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

Commit 191b060

Browse files
authored
Merge pull request #329 from codecov/fix-v4-response
fix: Test if response has two lines
2 parents 0ca520b + f4d24cc commit 191b060

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

lib/codecov.js

+2
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,8 @@ var sendToCodecovV4 = function (
209209
on_success,
210210
on_failure
211211
)
212+
} else if (result.split('\n').length !== 2) {
213+
console.log(' Could not upload to Codecov: ' + result)
212214
} else {
213215
var codecov_report_url = result.split('\n')[0]
214216
request(

package-lock.json

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)