Fix compile bustage from issue 221

git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@231 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
ted.mielczarek 2007-11-20 02:21:49 +00:00
parent 299c816021
commit f0a07749af
2 changed files with 8 additions and 6 deletions

View file

@ -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());
}

View file

@ -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());
}