aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-12-01 14:01:36 +0000
committerBibiko <bibiko@eva.mpg.de>2010-12-01 14:01:36 +0000
commit40b1a5d57e6445f5a644521018ceb7762b3b59b8 (patch)
tree69cbb8f8bf46f23b38f8cecbf284ece868e97ece
parent426b66613cd49497b4e8ad4246031c0e43b2ec27 (diff)
downloadsequelpro-40b1a5d57e6445f5a644521018ceb7762b3b59b8.tar.gz
sequelpro-40b1a5d57e6445f5a644521018ceb7762b3b59b8.tar.bz2
sequelpro-40b1a5d57e6445f5a644521018ceb7762b3b59b8.zip
• improve error handling for url scheme commands
-rw-r--r--Source/SPAppController.m13
-rw-r--r--Source/SPBundleHTMLOutputController.m2
2 files changed, 14 insertions, 1 deletions
diff --git a/Source/SPAppController.m b/Source/SPAppController.m
index 67d0427f..d9fe64bb 100644
--- a/Source/SPAppController.m
+++ b/Source/SPAppController.m
@@ -684,6 +684,19 @@
return;
}
+ // If command failed notify the file handle hand shake mechanism
+ NSString *out = @"1";
+ [out writeToFile:[NSString stringWithFormat:@"%@%@", SPURLSchemeQueryResultStatusPathHeader, passedProcessID]
+ atomically:YES
+ encoding:NSUTF8StringEncoding
+ error:nil];
+ out = @"Scheme Error";
+ [out writeToFile:[NSString stringWithFormat:@"%@%@", SPURLSchemeQueryResultPathHeader, passedProcessID]
+ atomically:YES
+ encoding:NSUTF8StringEncoding
+ error:nil];
+
+
if(processDocument)
NSLog(@"process doc ID: %@\n%@", [processDocument processID], [processDocument tabTitleForTooltip]);
else
diff --git a/Source/SPBundleHTMLOutputController.m b/Source/SPBundleHTMLOutputController.m
index 5d3d0ddf..c6129e99 100644
--- a/Source/SPBundleHTMLOutputController.m
+++ b/Source/SPBundleHTMLOutputController.m
@@ -41,7 +41,7 @@
if (self = [super initWithWindowNibName:@"BundleHTMLOutput"]) {
- ;
+ [[self window] setReleasedWhenClosed:YES];
}