Differences From Artifact [fdfa17252c]:
- File
utils/ofzip/OFZIP.m
— part of check-in
[44f45c2e35]
at
2017-01-09 17:36:36
on branch trunk
— Update copyright
Forgot to add 2017, even though I already did quite some changes in
2017. (user: js, size: 9582) [annotate] [blame] [check-ins using]
To Artifact [70af7286c2]:
- File utils/ofzip/OFZIP.m — part of check-in [32a5446a7f] at 2017-02-12 09:33:04 on branch trunk — ofzip: Nicer error message when seeking fails (user: js, size: 9792) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
30 31 32 33 34 35 36 37 38 39 40 41 42 43 | #import "TarArchive.h" #import "ZIPArchive.h" #import "OFCreateDirectoryFailedException.h" #import "OFInvalidFormatException.h" #import "OFOpenItemFailedException.h" #import "OFReadFailedException.h" #import "OFWriteFailedException.h" #define BUFFER_SIZE 4096 OF_APPLICATION_DELEGATE(OFZIP) static void | > | 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | #import "TarArchive.h" #import "ZIPArchive.h" #import "OFCreateDirectoryFailedException.h" #import "OFInvalidFormatException.h" #import "OFOpenItemFailedException.h" #import "OFReadFailedException.h" #import "OFSeekFailedException.h" #import "OFWriteFailedException.h" #define BUFFER_SIZE 4096 OF_APPLICATION_DELEGATE(OFZIP) static void |
︙ | ︙ | |||
274 275 276 277 278 279 280 281 282 283 284 285 286 287 | [of_stderr writeFormat: @"Unknown archive type: %@!\n", type]; [OFApplication terminateWithStatus: 1]; } } @catch (OFReadFailedException *e) { [of_stderr writeFormat: @"Failed to read file %@: %s\n", path, strerror([e errNo])]; [OFApplication terminateWithStatus: 1]; } @catch (OFInvalidFormatException *e) { [of_stderr writeFormat: @"File %@ is not a valid archive!\n", path]; [OFApplication terminateWithStatus: 1]; } | > > > > | 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 | [of_stderr writeFormat: @"Unknown archive type: %@!\n", type]; [OFApplication terminateWithStatus: 1]; } } @catch (OFReadFailedException *e) { [of_stderr writeFormat: @"Failed to read file %@: %s\n", path, strerror([e errNo])]; [OFApplication terminateWithStatus: 1]; } @catch (OFSeekFailedException *e) { [of_stderr writeFormat: @"Failed to seek in file %@: %s\n", path, strerror([e errNo])]; [OFApplication terminateWithStatus: 1]; } @catch (OFInvalidFormatException *e) { [of_stderr writeFormat: @"File %@ is not a valid archive!\n", path]; [OFApplication terminateWithStatus: 1]; } |
︙ | ︙ |