From 4d6c48085abf86c71953936d7f6a9ce43abdc731 Mon Sep 17 00:00:00 2001 From: schriftgestalt Date: Fri, 20 Jul 2018 11:31:23 +0200 Subject: [PATCH] small hack that the underlying problem is visible to the user then the error is displayed with [NSApp presentError:] --- ObjectiveGit/Categories/NSError+Git.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ObjectiveGit/Categories/NSError+Git.m b/ObjectiveGit/Categories/NSError+Git.m index e66d2fcb3..e9c913a46 100644 --- a/ObjectiveGit/Categories/NSError+Git.m +++ b/ObjectiveGit/Categories/NSError+Git.m @@ -63,7 +63,10 @@ + (NSError *)git_errorFor:(int)code description:(NSString *)desc failureReason:( } NSError *underError = [self git_errorFor:code]; - if (underError != nil) userInfo[NSUnderlyingErrorKey] = underError; + if (underError != nil) { + userInfo[NSUnderlyingErrorKey] = underError; + userInfo[NSLocalizedRecoverySuggestionErrorKey] = [underError localizedDescription]; + } return [NSError errorWithDomain:GTGitErrorDomain code:code userInfo:userInfo]; }