aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTextViewAdditions.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-11-30 00:16:06 +0000
committerBibiko <bibiko@eva.mpg.de>2010-11-30 00:16:06 +0000
commitcc2e00c656a34d4c472a25f929282c8fc63d0174 (patch)
tree34d4f213f4efc4ddd73625e5941d002b6e3bd92f /Source/SPTextViewAdditions.m
parentc1cb48f6afa93b8ed26baa434d66d1ca3e0afca7 (diff)
downloadsequelpro-cc2e00c656a34d4c472a25f929282c8fc63d0174.tar.gz
sequelpro-cc2e00c656a34d4c472a25f929282c8fc63d0174.tar.bz2
sequelpro-cc2e00c656a34d4c472a25f929282c8fc63d0174.zip
• Bundle commands
- before closing a db doc window kill all commands associated to this doc - suppress an error message if a bash command was killed via code 9 - added a temporary and preliminary table view to display command activities (double-click at TABLE INFO header to toggle and refresh it - only for testing purposes - it shows all commands started from that db doc and a General command names)
Diffstat (limited to 'Source/SPTextViewAdditions.m')
-rw-r--r--Source/SPTextViewAdditions.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/SPTextViewAdditions.m b/Source/SPTextViewAdditions.m
index f75505df..e613dac1 100644
--- a/Source/SPTextViewAdditions.m
+++ b/Source/SPTextViewAdditions.m
@@ -667,7 +667,7 @@
}
}
- } else {
+ } else if([err code] != 9) { // Suppress an error message if command was killed
NSString *errorMessage = [err localizedDescription];
SPBeginAlertSheet(NSLocalizedString(@"BASH Error", @"bash error"), NSLocalizedString(@"OK", @"OK button"), nil, nil, [self window], self, nil, nil,
[NSString stringWithFormat:@"%@ “%@”:\n%@", NSLocalizedString(@"Error for", @"error for message"), [cmdData objectForKey:@"name"], errorMessage]);