diff options
author | jessicag.feedback@gmail.com <jessicag.feedback@gmail.com@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2010-04-13 19:00:49 +0000 |
---|---|---|
committer | jessicag.feedback@gmail.com <jessicag.feedback@gmail.com@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2010-04-13 19:00:49 +0000 |
commit | a62dc27d2327156ffd80d385e261605af48e3b4e (patch) | |
tree | 7a25de42ad7e148588c3f7534b7ecf4fb28e9e74 /src/tools | |
parent | provide a network source line resolver + server. r=mark,jimb at http://breakp... (diff) | |
download | breakpad-a62dc27d2327156ffd80d385e261605af48e3b4e.tar.xz |
Mac now takes response code into account when determining success of a symupload.
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@570 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'src/tools')
-rw-r--r-- | src/tools/mac/symupload/symupload.m | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tools/mac/symupload/symupload.m b/src/tools/mac/symupload/symupload.m index d4a30150..7830cdca 100644 --- a/src/tools/mac/symupload/symupload.m +++ b/src/tools/mac/symupload/symupload.m @@ -129,15 +129,16 @@ static void Start(Options *options) { NSData *data = [ul send:&error]; NSString *result = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding]; + int status = [[ul response] statusCode]; fprintf(stdout, "Send: %s\n", error ? [[error description] UTF8String] : "No Error"); - fprintf(stdout, "Response: %d\n", [[ul response] statusCode]); + fprintf(stdout, "Response: %d\n", status); fprintf(stdout, "Result: %d bytes\n%s\n", [data length], [result UTF8String]); [result release]; [ul release]; - options->success = !error; + options->success = !error && status==200; } //============================================================================= |