ObjFW  Check-in [ffb574eb74]

Overview
Comment:Fix a typo in -[description] of OFConnectionFailedException.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: ffb574eb746a134e2efaacbb2da41c7d54cd3a4ffe94c82abc0e8f9b9301aa9d
User & Date: js on 2011-04-27 21:29:18
Other Links: manifest | tags
Context
2011-04-28
18:03
Don't allow nil in -[initWithObjectForKey:] and optimize -[description]. check-in: a5f297053a user: js tags: trunk
2011-04-27
21:29
Fix a typo in -[description] of OFConnectionFailedException. check-in: ffb574eb74 user: js tags: trunk
16:14
Small string optimization. check-in: 50a6d34eff user: js tags: trunk
Changes

Modified src/exceptions/OFConnectionFailedException.m from [5af8de549d] to [ad4dc4b722].

73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88

- (OFString*)description
{
	if (description != nil)
		return description;

	description = [[OFString alloc] initWithFormat:
	    @"A connection to %@ on port %" @PRIu16 @"could not be established "
	    @"in class %@! " ERRFMT, host, port, inClass, ERRPARAM];

	return description;
}

- (OFTCPSocket*)socket
{
	return socket;







|
|







73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88

- (OFString*)description
{
	if (description != nil)
		return description;

	description = [[OFString alloc] initWithFormat:
	    @"A connection to %@ on port %" @PRIu16 @" could not be "
	    @"established in class %@! " ERRFMT, host, port, inClass, ERRPARAM];

	return description;
}

- (OFTCPSocket*)socket
{
	return socket;