Commit a6986f51 authored by Felix Paul Kühne's avatar Felix Paul Kühne

MLFile: improved error reporting

parent 8c4465a2
......@@ -59,9 +59,8 @@ NSString *kMLFileTypeAudio = @"audio";
NSArray *movies = [moc executeFetchRequest:request error:&error];
[request release];
[descriptor release];
if (!movies) {
if (!movies || error.code != 0)
APLog(@"WARNING: %@", error);
}
return movies;
}
......@@ -94,9 +93,9 @@ NSString *kMLFileTypeAudio = @"audio";
- (NSString *)artworkURL
{
if ([self isShowEpisode]) {
if ([self isShowEpisode])
return self.showEpisode.artworkURL;
}
return [self primitiveValueForKey:@"artworkURL"];
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment