diff --git a/SDWebImage/SDWebImageManager.m b/SDWebImage/SDWebImageManager.m index 93690a00..068fa61e 100644 --- a/SDWebImage/SDWebImageManager.m +++ b/SDWebImage/SDWebImageManager.m @@ -91,7 +91,11 @@ if (!url || !completedBlock || (!(options & SDWebImageRetryFailed) && isFailedUrl)) { - if (completedBlock) completedBlock(nil, nil, SDImageCacheTypeNone, NO); + if (completedBlock) + { + NSError *error = [NSError errorWithDomain:NSURLErrorDomain code:NSURLErrorFileDoesNotExist userInfo:nil]; + completedBlock(nil, error, SDImageCacheTypeNone, YES); + } return operation; }