aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPExportFile.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2011-03-15 02:21:09 +0000
committerrowanbeentje <rowan@beent.je>2011-03-15 02:21:09 +0000
commitce26c1a8d44743c418e6af461ba970cea3afaaee (patch)
treef2b8178cea628cd023e4c3183693d05aa44e50ac /Source/SPExportFile.m
parentd2b4123427c21c522b2e4496a6d54eb74aabe62d (diff)
downloadsequelpro-ce26c1a8d44743c418e6af461ba970cea3afaaee.tar.gz
sequelpro-ce26c1a8d44743c418e6af461ba970cea3afaaee.tar.bz2
sequelpro-ce26c1a8d44743c418e6af461ba970cea3afaaee.zip
- Fix more compiler warnings
- Tweak README
Diffstat (limited to 'Source/SPExportFile.m')
-rw-r--r--Source/SPExportFile.m6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/SPExportFile.m b/Source/SPExportFile.m
index 4ccfa16c..10570a71 100644
--- a/Source/SPExportFile.m
+++ b/Source/SPExportFile.m
@@ -104,6 +104,7 @@
if ([fileManager fileExistsAtPath:[self exportFilePath]]) {
return [[NSFileManager defaultManager] removeItemAtPath:[self exportFilePath] error:nil];
}
+ return NO;
}
/**
@@ -136,10 +137,9 @@
// The file path must be set before attempting to create the file handle
if ((![self exportFilePath]) || ([[self exportFilePath] length] == 0)) {
[NSException raise:NSInternalInconsistencyException
- format:@"Attempting to create an export filehandle for a path that is either not set or has zero length: %@."
- arguments:[self exportFilePath]];
+ format:@"Attempting to create an export filehandle for a path that is either not set or has zero length: %@." , [self exportFilePath]];
- return;
+ return SPExportFileHandleFailed;
}
NSFileManager *fileManager = [NSFileManager defaultManager];