Showing
1 changed file
with
2 additions
and
2 deletions
@@ -499,7 +499,7 @@ static NSOperationQueue *sharedQueue = nil; | @@ -499,7 +499,7 @@ static NSOperationQueue *sharedQueue = nil; | ||
499 | NSError *err = nil; | 499 | NSError *err = nil; |
500 | [self setPostLength:[[[NSFileManager defaultManager] attributesOfItemAtPath:path error:&err] fileSize]]; | 500 | [self setPostLength:[[[NSFileManager defaultManager] attributesOfItemAtPath:path error:&err] fileSize]]; |
501 | if (err) { | 501 | if (err) { |
502 | - [self failWithError:[NSError errorWithDomain:NetworkRequestErrorDomain code:ASIFileManagementError userInfo:[NSDictionary dictionaryWithObjectsAndKeys:[NSString stringWithFormat:@"Failed to get attributes for file at path '@%'",path],NSLocalizedDescriptionKey,error,NSUnderlyingErrorKey,nil]]]; | 502 | + [self failWithError:[NSError errorWithDomain:NetworkRequestErrorDomain code:ASIFileManagementError userInfo:[NSDictionary dictionaryWithObjectsAndKeys:[NSString stringWithFormat:@"Failed to get attributes for file at path '%@'",path],NSLocalizedDescriptionKey,error,NSUnderlyingErrorKey,nil]]]; |
503 | return; | 503 | return; |
504 | } | 504 | } |
505 | 505 | ||
@@ -1045,7 +1045,7 @@ static NSOperationQueue *sharedQueue = nil; | @@ -1045,7 +1045,7 @@ static NSOperationQueue *sharedQueue = nil; | ||
1045 | NSError *err = nil; | 1045 | NSError *err = nil; |
1046 | [self setPartialDownloadSize:[[[NSFileManager defaultManager] attributesOfItemAtPath:[self temporaryFileDownloadPath] error:&err] fileSize]]; | 1046 | [self setPartialDownloadSize:[[[NSFileManager defaultManager] attributesOfItemAtPath:[self temporaryFileDownloadPath] error:&err] fileSize]]; |
1047 | if (err) { | 1047 | if (err) { |
1048 | - [self failWithError:[NSError errorWithDomain:NetworkRequestErrorDomain code:ASIFileManagementError userInfo:[NSDictionary dictionaryWithObjectsAndKeys:[NSString stringWithFormat:@"Failed to get attributes for file at path '@%'",[self temporaryFileDownloadPath]],NSLocalizedDescriptionKey,error,NSUnderlyingErrorKey,nil]]]; | 1048 | + [self failWithError:[NSError errorWithDomain:NetworkRequestErrorDomain code:ASIFileManagementError userInfo:[NSDictionary dictionaryWithObjectsAndKeys:[NSString stringWithFormat:@"Failed to get attributes for file at path '%@'",[self temporaryFileDownloadPath]],NSLocalizedDescriptionKey,error,NSUnderlyingErrorKey,nil]]]; |
1049 | return; | 1049 | return; |
1050 | } | 1050 | } |
1051 | } | 1051 | } |
-
Please register or login to post a comment