aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/tools/mac/symupload/symupload.m5
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;
}
//=============================================================================