ObjFW  Check-in [67b1d67088]

Overview
Comment:OFOpenItemFailedException: Improve description
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 67b1d670887b2fb9db2f5d0f4f6e80cf1dd5f706cf5d66db506d3619fb4c7a5e
User & Date: js on 2022-10-14 16:11:20
Other Links: manifest | tags
Context
2022-10-14
19:15
Adjust Amiga .library to amiga-gcc changes check-in: b610a6165c user: js tags: trunk
16:11
OFOpenItemFailedException: Improve description check-in: 67b1d67088 user: js tags: trunk
2022-10-11
19:27
OFURI: Make scheme and path nonnull check-in: 3e455c4839 user: js tags: trunk
Changes

Modified src/exceptions/OFOpenItemFailedException.m from [c620b20831] to [7129cdf836].

102
103
104
105
106
107
108
109
110
111
112
113
114
115
	if (_URI != nil)
		item = _URI;
	else if (_path != nil)
		item = _path;

	if (_mode != nil)
		return [OFString stringWithFormat:
		    @"Failed to open item %@ with mode %@: %@",
		    item, _mode, OFStrError(_errNo)];
	else
		return [OFString stringWithFormat:
		    @"Failed to open item %@: %@", item, OFStrError(_errNo)];
}
@end







|






102
103
104
105
106
107
108
109
110
111
112
113
114
115
	if (_URI != nil)
		item = _URI;
	else if (_path != nil)
		item = _path;

	if (_mode != nil)
		return [OFString stringWithFormat:
		    @"Failed to open file %@ with mode %@: %@",
		    item, _mode, OFStrError(_errNo)];
	else
		return [OFString stringWithFormat:
		    @"Failed to open item %@: %@", item, OFStrError(_errNo)];
}
@end