Showing
2 changed files
with
2 additions
and
2 deletions
@@ -189,7 +189,7 @@ | @@ -189,7 +189,7 @@ | ||
189 | // Make sure nothing went wrong | 189 | // Make sure nothing went wrong |
190 | if ([inputStream streamStatus] == NSStreamEventErrorOccurred) { | 190 | if ([inputStream streamStatus] == NSStreamEventErrorOccurred) { |
191 | if (err) { | 191 | if (err) { |
192 | - *err = [NSError errorWithDomain:NetworkRequestErrorDomain code:ASICompressionError userInfo:[NSDictionary dictionaryWithObjectsAndKeys:[NSString stringWithFormat:@"Compression of %@ failed because we were unable to write to the destination data file at &@",sourcePath,destinationPath],NSLocalizedDescriptionKey,[outputStream streamError],NSUnderlyingErrorKey,nil]]; | 192 | + *err = [NSError errorWithDomain:NetworkRequestErrorDomain code:ASICompressionError userInfo:[NSDictionary dictionaryWithObjectsAndKeys:[NSString stringWithFormat:@"Compression of %@ failed because we were unable to write to the destination data file at %@",sourcePath,destinationPath],NSLocalizedDescriptionKey,[outputStream streamError],NSUnderlyingErrorKey,nil]]; |
193 | } | 193 | } |
194 | [compressor closeStream]; | 194 | [compressor closeStream]; |
195 | return NO; | 195 | return NO; |
@@ -186,7 +186,7 @@ | @@ -186,7 +186,7 @@ | ||
186 | // Make sure nothing went wrong | 186 | // Make sure nothing went wrong |
187 | if ([inputStream streamStatus] == NSStreamEventErrorOccurred) { | 187 | if ([inputStream streamStatus] == NSStreamEventErrorOccurred) { |
188 | if (err) { | 188 | if (err) { |
189 | - *err = [NSError errorWithDomain:NetworkRequestErrorDomain code:ASICompressionError userInfo:[NSDictionary dictionaryWithObjectsAndKeys:[NSString stringWithFormat:@"Decompression of %@ failed because we were unable to write to the destination data file at &@",sourcePath,destinationPath],NSLocalizedDescriptionKey,[outputStream streamError],NSUnderlyingErrorKey,nil]]; | 189 | + *err = [NSError errorWithDomain:NetworkRequestErrorDomain code:ASICompressionError userInfo:[NSDictionary dictionaryWithObjectsAndKeys:[NSString stringWithFormat:@"Decompression of %@ failed because we were unable to write to the destination data file at %@",sourcePath,destinationPath],NSLocalizedDescriptionKey,[outputStream streamError],NSUnderlyingErrorKey,nil]]; |
190 | } | 190 | } |
191 | [decompressor closeStream]; | 191 | [decompressor closeStream]; |
192 | return NO; | 192 | return NO; |
-
Please register or login to post a comment