Fix filter error reporting

This commit is contained in:
Matthias Neeracher 2007-09-03 14:00:14 +00:00
parent 71a1ae2d38
commit a7933adae0

View File

@ -426,9 +426,12 @@ advanceAt:
[filterTask waitUntilExit]; [filterTask waitUntilExit];
[filterTask release]; [filterTask release];
if ([error length]) if ([error length]) {
NSString * errStr = [[[NSString alloc] initWithData:error
encoding:NSUTF8StringEncoding] autorelease];
[NSException raise:NSInvalidArgumentException [NSException raise:NSInvalidArgumentException
format:@"Filter %@: %@", filterName, error]; format:@"Filter %@: %@", filterName, errStr];
}
return output; return output;
} }