aboutsummaryrefslogtreecommitdiff
path: root/src/tools/linux
diff options
context:
space:
mode:
authorted.mielczarek <ted.mielczarek@4c0a9323-5329-0410-9bdc-e9ce6186880e>2007-11-20 02:21:49 +0000
committerted.mielczarek <ted.mielczarek@4c0a9323-5329-0410-9bdc-e9ce6186880e>2007-11-20 02:21:49 +0000
commitf0a07749af99d249ed1f0dba151bb9d81e885e11 (patch)
tree1a81b725bd00baee2ce2b2d33078cb055a7eb1d2 /src/tools/linux
parentAdd MD_CPU_ARCHITECTURE_AMD64 as valid system type when cpu type is MD_CONTEX... (diff)
downloadbreakpad-f0a07749af99d249ed1f0dba151bb9d81e885e11.tar.xz
Fix compile bustage from issue 221
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@231 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'src/tools/linux')
-rw-r--r--src/tools/linux/symupload/minidump_upload.cc7
-rw-r--r--src/tools/linux/symupload/sym_upload.cc7
2 files changed, 8 insertions, 6 deletions
diff --git a/src/tools/linux/symupload/minidump_upload.cc b/src/tools/linux/symupload/minidump_upload.cc
index de9f7092..cab6ad43 100644
--- a/src/tools/linux/symupload/minidump_upload.cc
+++ b/src/tools/linux/symupload/minidump_upload.cc
@@ -59,19 +59,20 @@ static void Start(Options *options) {
parameters["ver"] = options->version;
// Send it
- std::string response;
+ std::string response, error;
bool success = HTTPUpload::SendRequest(options->uploadURLStr,
parameters,
options->minidumpPath,
"upload_file_minidump",
options->proxy,
options->proxy_user_pwd,
- &response);
+ &response,
+ &error);
if (success) {
printf("Successfully sent the minidump file.\n");
} else {
- printf("Failed to send minidump\n");
+ printf("Failed to send minidump: %s\n", error.c_str());
printf("Response:\n");
printf("%s\n", response.c_str());
}
diff --git a/src/tools/linux/symupload/sym_upload.cc b/src/tools/linux/symupload/sym_upload.cc
index 88fe7168..4e4da065 100644
--- a/src/tools/linux/symupload/sym_upload.cc
+++ b/src/tools/linux/symupload/sym_upload.cc
@@ -137,19 +137,20 @@ static void Start(Options *options) {
parameters["debug_file"] = module_parts[4];
parameters["code_file"] = module_parts[4];
parameters["debug_identifier"] = compacted_id;
- std::string response;
+ std::string response, error;
bool success = HTTPUpload::SendRequest(options->uploadURLStr,
parameters,
options->symbolsPath,
"symbol_file",
options->proxy,
options->proxy_user_pwd,
- &response);
+ &response,
+ &error);
if (success) {
printf("Successfully sent the symbol file.\n");
} else {
- printf("Failed to send symbol file.\n");
+ printf("Failed to send symbol file: %s\n", error.c_str());
printf("Response:\n");
printf("%s\n", response.c_str());
}