Refactored part of SBQueueController.
This commit is contained in:
1 parent
9cbd2e7001
commit
30f4ebf97a
7 files changed
+190
-102
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user