mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-25 00:39:25 +00:00
Partially converted to modern Objective-C
Signed-off-by: michael starke <michael.starke@hicknhack-software.com>
This commit is contained in:
@@ -13,7 +13,7 @@ NSString *const MPErrorDomain = @"com.hicknhack.macpass.error";
|
||||
@implementation NSError (Messages)
|
||||
|
||||
- (NSString *)descriptionForErrorCode {
|
||||
return [NSString stringWithFormat:@"%@ (%ld)", [self localizedDescription], [self code] ];
|
||||
return [NSString stringWithFormat:@"%@ (%ld)", self.localizedDescription, self.code ];
|
||||
}
|
||||
|
||||
+ (NSError *)errorWithCode:(NSInteger)code description:(NSString *)description {
|
||||
|
||||
Reference in New Issue
Block a user