Authored by Olivier Poitrey

Merge pull request #408 from dlbuckley/issue-406-Failed-URL-Problem

#406 - Fixed failed URL problem
@@ -91,7 +91,11 @@ @@ -91,7 +91,11 @@
91 91
92 if (!url || !completedBlock || (!(options & SDWebImageRetryFailed) && isFailedUrl)) 92 if (!url || !completedBlock || (!(options & SDWebImageRetryFailed) && isFailedUrl))
93 { 93 {
94 - if (completedBlock) completedBlock(nil, nil, SDImageCacheTypeNone, NO); 94 + if (completedBlock)
  95 + {
  96 + NSError *error = [NSError errorWithDomain:NSURLErrorDomain code:NSURLErrorFileDoesNotExist userInfo:nil];
  97 + completedBlock(nil, error, SDImageCacheTypeNone, YES);
  98 + }
95 return operation; 99 return operation;
96 } 100 }
97 101