ObjFW  Diff

Differences From Artifact [c9180070ce]:

To Artifact [3d1c32bca2]:


224
225
226
227
228
229
230



231
232
233
234
235
236
237
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240







+
+
+







- (id <Archive>)openArchiveWithPath: (OFString*)path
{
	OFFile *file = nil;
	id <Archive> archive = nil;

	[_archivePath release];
	_archivePath = [path copy];

	if (path == nil)
		return nil;

	@try {
		file = [OFFile fileWithPath: path
				       mode: @"rb"];
	} @catch (OFOpenItemFailedException *e) {
		[of_stderr writeFormat: @"Failed to open file %@: %s\n",
					[e path], strerror([e errNo])];