Skip to content

Commit

Permalink
Fix bug preventing any failure return.
Browse files Browse the repository at this point in the history
  • Loading branch information
primalmotion committed Jan 24, 2013
1 parent f36b23b commit 448d395
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions Tools/XcodeCapp/TNXCodeCapp.m
Expand Up @@ -537,6 +537,18 @@ - (void)handleFileModification:(NSString*)fullPath notify:(BOOL)shouldNotify
response = [statusInfo objectAtIndex:1];

DLog(@"handleFileModification:notify: Conversion task result/response: %@/%@", status, response);

if ([status intValue] == 0 && shouldNotify)
{
[delegate performSelector:@selector(growlWithTitle:message:) withObject:successTitle withObject:successMsg];
}
else if (![status intValue] == 0)
{
if (response)
[errorList addObject:response];

[delegate performSelector:@selector(growlWithTitle:message:) withObject:@"Error processing file" withObject:splitPath];
}
}

if (PBXArguments)
Expand All @@ -548,18 +560,6 @@ - (void)handleFileModification:(NSString*)fullPath notify:(BOOL)shouldNotify
DLog(@"handleFileModification:notify: Update PBX Task result/response: %@/%@", status, response);
}

if ([status intValue] == 0 && shouldNotify)
{
[delegate performSelector:@selector(growlWithTitle:message:) withObject:successTitle withObject:successMsg];
}
else if (![status intValue] == 0)
{
if (response)
[errorList addObject:response];

[delegate performSelector:@selector(growlWithTitle:message:) withObject:@"Error processing file" withObject:splitPath];
}

[[NSNotificationCenter defaultCenter] postNotificationName:XCCConversionStopNotification object:self];
DLog(@"handleFileModification:notify: Processed: %@", fullPath);
}
Expand Down

0 comments on commit 448d395

Please sign in to comment.