mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-16 15:41:27 +00:00
Fix bug preventing any failure return.
This commit is contained in:
@@ -537,6 +537,18 @@ NSString * const XCCListeningStartNotification = @"XCCListeningStartNotification
|
||||
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)
|
||||
@@ -548,18 +560,6 @@ NSString * const XCCListeningStartNotification = @"XCCListeningStartNotification
|
||||
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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user