157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
|
}
[OFApplication terminateWithStatus: _exitStatus];
}
- (OFZIPArchive*)openArchiveWithPath: (OFString*)path
{
OFZIPArchive *archive;
@try {
archive = [OFZIPArchive archiveWithPath: path];
} @catch (OFOpenFileFailedException *e) {
[of_stderr writeFormat: @"Failed to open file %@: %s\n",
[e path], strerror([e errNo])];
[OFApplication terminateWithStatus: 1];
|
|
|
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
|
}
[OFApplication terminateWithStatus: _exitStatus];
}
- (OFZIPArchive*)openArchiveWithPath: (OFString*)path
{
OFZIPArchive *archive = nil;
@try {
archive = [OFZIPArchive archiveWithPath: path];
} @catch (OFOpenFileFailedException *e) {
[of_stderr writeFormat: @"Failed to open file %@: %s\n",
[e path], strerror([e errNo])];
[OFApplication terminateWithStatus: 1];
|