OLD | NEW |
1 // Copyright (c) 2006, Google Inc. | 1 // Copyright (c) 2006, Google Inc. |
2 // All rights reserved. | 2 // All rights reserved. |
3 // | 3 // |
4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
5 // modification, are permitted provided that the following conditions are | 5 // modification, are permitted provided that the following conditions are |
6 // met: | 6 // met: |
7 // | 7 // |
8 // * Redistributions of source code must retain the above copyright | 8 // * Redistributions of source code must retain the above copyright |
9 // notice, this list of conditions and the following disclaimer. | 9 // notice, this list of conditions and the following disclaimer. |
10 // * Redistributions in binary form must reproduce the above | 10 // * Redistributions in binary form must reproduce the above |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 "symbol_file", | 147 "symbol_file", |
148 options->proxy, | 148 options->proxy, |
149 options->proxy_user_pwd, | 149 options->proxy_user_pwd, |
150 "", | 150 "", |
151 &response, | 151 &response, |
152 &response_code, | 152 &response_code, |
153 &error); | 153 &error); |
154 | 154 |
155 if (!success) { | 155 if (!success) { |
156 printf("Failed to send symbol file: %s\n", error.c_str()); | 156 printf("Failed to send symbol file: %s\n", error.c_str()); |
| 157 printf("Response code: %ld\n", response_code); |
157 printf("Response:\n"); | 158 printf("Response:\n"); |
158 printf("%s\n", response.c_str()); | 159 printf("%s\n", response.c_str()); |
159 } else if (response_code == 0) { | 160 } else if (response_code == 0) { |
160 printf("Failed to send symbol file: No response code\n"); | 161 printf("Failed to send symbol file: No response code\n"); |
161 } else if (response_code != 200) { | 162 } else if (response_code != 200) { |
162 printf("Failed to send symbol file: Response code %ld\n", response_code); | 163 printf("Failed to send symbol file: Response code %ld\n", response_code); |
163 printf("Response:\n"); | 164 printf("Response:\n"); |
164 printf("%s\n", response.c_str()); | 165 printf("%s\n", response.c_str()); |
165 } else { | 166 } else { |
166 printf("Successfully sent the symbol file.\n"); | 167 printf("Successfully sent the symbol file.\n"); |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 options->uploadURLStr = argv[optind + 1]; | 220 options->uploadURLStr = argv[optind + 1]; |
220 } | 221 } |
221 | 222 |
222 //============================================================================= | 223 //============================================================================= |
223 int main(int argc, const char* argv[]) { | 224 int main(int argc, const char* argv[]) { |
224 Options options; | 225 Options options; |
225 SetupOptions(argc, argv, &options); | 226 SetupOptions(argc, argv, &options); |
226 Start(&options); | 227 Start(&options); |
227 return options.success ? 0 : 1; | 228 return options.success ? 0 : 1; |
228 } | 229 } |
OLD | NEW |