Fixed: Wrong method included on CPError

This commit is contained in:
Andrew Hankinson committed 2014-11-01 09:27:12 -04:00
1 parent 660d36e001
commit ef5d1d6e58
1 file changed
+7 -2
+7 -2
View File
@@ -87,9 +87,9 @@ var userInfo = @{CPLocalizedDescriptionKey: @"A localized error description",
return self.code();
}
- (CPString)description
- (CPString)userInfo
{
return self.description();
return self.userInfo();
}
- (CPString)domain
@@ -97,6 +97,11 @@ var userInfo = @{CPLocalizedDescriptionKey: @"A localized error description",
return self.domain();
}
/*!
By default this method returns the object in the user info dictionary for the key
NSLocalizedDescriptionKey. If the user info dictionary doesn’t contain a value for
NSLocalizedDescriptionKey, a default string is constructed from the domain and code.
*/
- (CPString)localizedDescription
{
return self.description();