Skip to content

Commit cec4600

Browse files
committed
Display the underlying task error description in the error sheet
1 parent 5c2da06 commit cec4600

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Classes/Views/PBGitXMessageSheet.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ + (void)beginSheetWithError:(NSError *)error
8080
NSError *taskError = error.userInfo[NSUnderlyingErrorKey];
8181
if (taskError && taskError.domain == PBTaskErrorDomain) {
8282
[messageParts addObject:NSLocalizedString(@"The underlying task failed:", @"PBGitXMessageSheet - task failed header")];
83+
[messageParts addObject:taskError.localizedDescription];
84+
[messageParts addObject:taskError.localizedFailureReason];
8385
if (taskError.code == PBTaskNonZeroExitCodeError) {
8486
NSString *message = NSLocalizedString(@"Return code: %@", @"PBGitXMessageSheet - task return code header");
8587
message = [NSString stringWithFormat:message, taskError.userInfo[PBTaskTerminationStatusKey]];

0 commit comments

Comments
 (0)