Skip to content

Commit

Permalink
Coveralls: fix error reporting printing
Browse files Browse the repository at this point in the history
Previously, this would print an html page, now it will print the error message

Fixes #276
  • Loading branch information
vtjnash committed Nov 17, 2020
1 parent 36fc28a commit 319daf5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/codecovio.jl
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,8 @@ module Codecov
verbose && @debug "Codecov.io API URL:\n" * mask_token(uri_str)

if !dry_run
heads = Dict("Content-Type" => "application/json")
heads = Dict("Content-Type" => "application/json",
"Accept" => "application/json")
data = to_json(fcs)
req = HTTP.post(uri_str; body = JSON.json(data), headers = heads)
@debug "Result of submission:" * String(req)
Expand Down

0 comments on commit 319daf5

Please sign in to comment.