Overview
Comment: | ofzip: Nicer error message when seeking fails |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
32a5446a7f07eb1646bba77d6ffa9294 |
User & Date: | js on 2017-02-12 09:33:04 |
Other Links: | manifest | tags |
Context
2017-02-12
| ||
13:33 | Save a few bytes on the encodings check-in: 8ae231f515 user: js tags: trunk | |
09:33 | ofzip: Nicer error message when seeking fails check-in: 32a5446a7f user: js tags: trunk | |
2017-02-06
| ||
23:30 | Add missing sources to Xcode project check-in: 8ecc9842a8 user: js tags: trunk | |
Changes
Modified utils/ofzip/OFZIP.m from [fdfa17252c] to [70af7286c2].
︙ | ︙ | |||
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]; } |
︙ | ︙ |