From 407f5d8e8d5e428f5fe1067838c479fb7f504da3 Mon Sep 17 00:00:00 2001 From: Aidan Steele Date: Sun, 11 Sep 2011 17:43:11 +1000 Subject: [PATCH] Fixed format strings in data compressor classes. --- Classes/ASIDataCompressor.m | 2 +- Classes/ASIDataDecompressor.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Classes/ASIDataCompressor.m b/Classes/ASIDataCompressor.m index 1e9fd8dc..9d75316d 100644 --- a/Classes/ASIDataCompressor.m +++ b/Classes/ASIDataCompressor.m @@ -189,7 +189,7 @@ + (BOOL)compressDataFromFile:(NSString *)sourcePath toFile:(NSString *)destinati // Make sure nothing went wrong if ([inputStream streamStatus] == NSStreamEventErrorOccurred) { if (err) { - *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]]; + *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]]; } [compressor closeStream]; return NO; diff --git a/Classes/ASIDataDecompressor.m b/Classes/ASIDataDecompressor.m index 61cfeb7e..3e084985 100644 --- a/Classes/ASIDataDecompressor.m +++ b/Classes/ASIDataDecompressor.m @@ -186,7 +186,7 @@ + (BOOL)uncompressDataFromFile:(NSString *)sourcePath toFile:(NSString *)destina // Make sure nothing went wrong if ([inputStream streamStatus] == NSStreamEventErrorOccurred) { if (err) { - *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]]; + *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]]; } [decompressor closeStream]; return NO;