don't upload coverage for headers
avoid printing curl error if error message has already been set