From 918b936f58efcf43608d81bc8c173ec08dca8e49 Mon Sep 17 00:00:00 2001 From: Steve Fung Date: Tue, 27 Oct 2015 14:24:43 -0700 Subject: [PATCH] crash_sender: Properly handle curl errors When the crash server returns an error code, correctly handle it as a curl error. Bug: 25295034 Change-Id: I75986a099cfcf90e5d7f2e9acf5616a164b5fc36 --- crash_reporter/crash_sender | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crash_reporter/crash_sender b/crash_reporter/crash_sender index 5b859a877..b24465d80 100755 --- a/crash_reporter/crash_sender +++ b/crash_reporter/crash_sender @@ -446,7 +446,7 @@ send_crash() { local curl_stderr="${TMP_DIR}/curl_stderr" set +e - curl "${url}" -v ${proxy:+--proxy "$proxy"} \ + curl "${url}" -f -v ${proxy:+--proxy "$proxy"} \ --capath "${RESTRICTED_CERTIFICATES_PATH}" --ciphers HIGH \ -F "prod=${product}" \ -F "ver=${version}" \