[Shared] Includes CodingPath in Source errors’ debug description (if available)

This commit is contained in:
Riley Testut
2023-10-10 15:13:40 -05:00
committed by Magesh K
parent 34c503da4b
commit 21b2a869a1
3 changed files with 33 additions and 1 deletions

View File

@@ -19,6 +19,8 @@ extern NSErrorUserInfoKey const ALTDeviceNameErrorKey;
extern NSErrorUserInfoKey const ALTOperatingSystemNameErrorKey;
extern NSErrorUserInfoKey const ALTOperatingSystemVersionErrorKey;
extern NSErrorUserInfoKey const ALTNSCodingPathKey;
typedef NS_ERROR_ENUM(AltServerErrorDomain, ALTServerError)
{
ALTServerErrorUnderlyingError = -1,

View File

@@ -37,6 +37,8 @@ NSErrorUserInfoKey const ALTDeviceNameErrorKey = @"deviceName";
NSErrorUserInfoKey const ALTOperatingSystemNameErrorKey = @"ALTOperatingSystemName";
NSErrorUserInfoKey const ALTOperatingSystemVersionErrorKey = @"ALTOperatingSystemVersion";
NSErrorUserInfoKey const ALTNSCodingPathKey = @"NSCodingPath";
@implementation NSError (ALTServerError)
+ (void)load