aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPAppController.m
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 /Source/SPAppController.m
parent426b66613cd49497b4e8ad4246031c0e43b2ec27 (diff)
downloadsequelpro-40b1a5d57e6445f5a644521018ceb7762b3b59b8.tar.gz
sequelpro-40b1a5d57e6445f5a644521018ceb7762b3b59b8.tar.bz2
sequelpro-40b1a5d57e6445f5a644521018ceb7762b3b59b8.zip
• improve error handling for url scheme commands
Diffstat (limited to 'Source/SPAppController.m')
-rw-r--r--Source/SPAppController.m13
1 files changed, 13 insertions, 0 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