aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2009-05-27 22:31:06 +0000
committerstuconnolly <stuart02@gmail.com>2009-05-27 22:31:06 +0000
commitac8c315b5172e1e787302580d0509834bf0caae2 (patch)
treee6ce35172a6a1e13670c7dc93fc4b448bfdfb643
parenta4d87f8e306f0959c26034a14143b9bda92d7411 (diff)
downloadsequelpro-ac8c315b5172e1e787302580d0509834bf0caae2.tar.gz
sequelpro-ac8c315b5172e1e787302580d0509834bf0caae2.tar.bz2
sequelpro-ac8c315b5172e1e787302580d0509834bf0caae2.zip
Log query errors in SPDatabaseData to the console.
-rw-r--r--Source/SPDatabaseData.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/SPDatabaseData.m b/Source/SPDatabaseData.m
index 24a0f204..52893233 100644
--- a/Source/SPDatabaseData.m
+++ b/Source/SPDatabaseData.m
@@ -158,8 +158,8 @@
CMMCPResult *result = [connection queryString:query];
// Log any errors
- if (![[connection getLastErrorMessage] isEqualToString:@""]) {
- NSLog(@"");
+ if ([[connection getLastErrorMessage] isEqualToString:@""]) {
+ NSLog(@"Error executing query in %@. MySQL said: %@", [self className], [connection getLastErrorMessage]);
}
else {
[result dataSeek:0];