File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -45,8 +45,20 @@ + (void)beginSheetWithError:(NSError *)error
45
45
windowController : (PBGitWindowController *)windowController
46
46
{
47
47
PBGitXMessageSheet *sheet = [[self alloc ] initWithWindowNibName: @" PBGitXMessageSheet" windowController: windowController];
48
+
49
+ NSString *infoText = nil ;
50
+ NSString *desc = error.localizedDescription ;
51
+ NSString *recovery = error.localizedRecoverySuggestion ;
52
+ if (desc && recovery) {
53
+ infoText = [NSString stringWithFormat: @" %@ \n\n %@ " , desc, recovery];
54
+ } else if (desc) {
55
+ infoText = desc;
56
+ } else if (recovery) {
57
+ infoText = recovery;
58
+ }
59
+
48
60
[sheet beginMessageSheetWithMessageText: [error localizedDescription ]
49
- infoText: [error localizedRecoverySuggestion ] ];
61
+ infoText: infoText ];
50
62
}
51
63
52
64
- (IBAction )closeMessageSheet : (id )sender
You can’t perform that action at this time.
0 commit comments