Refactored part of SBQueueController.

This commit is contained in:
Damiano Galassi committed 2014-06-24 09:09:54 +02:00
1 parent 9cbd2e7001
commit 30f4ebf97a
7 files changed
+190 -102

No files matched your search

+5
View File
@@ -147,6 +147,11 @@
- (BOOL)prepareItem:(NSError **)outError {
if (![[NSFileManager defaultManager] fileExistsAtPath:[self.URL path]]) {
if (outError) {
NSDictionary *errorDetail = @{ NSLocalizedDescriptionKey : @"File not found",
NSLocalizedRecoverySuggestionErrorKey : @"The source file couldn't be found." };
*outError = [NSError errorWithDomain:@"SBQueueItemError" code:10 userInfo:errorDetail];
}
return NO;
}