]> git.mxchange.org Git - core.git/commitdiff
Debug lines slightly extended
authorRoland Häder <roland@mxchange.org>
Wed, 20 Jul 2011 00:50:03 +0000 (00:50 +0000)
committerRoland Häder <roland@mxchange.org>
Wed, 20 Jul 2011 00:50:03 +0000 (00:50 +0000)
inc/classes/main/database/databases/class_LocalFileDatabase.php

index 9e7e3f42b7effda605629a42ffd91684c5583db9..407aa0d7c1d4145ac1d20f46bc982a47f2b957d0 100644 (file)
@@ -498,7 +498,7 @@ class LocalFileDatabase extends BaseDatabaseFrontend implements DatabaseFrontend
                        $this->lastError     = $e->getMessage();
 
                        // Throw an SQL exception
-                       throw new SqlException (array($this, sprintf("Cannot write data to table &#39;%s&#39;", $tableName), self::DB_CODE_TABLE_UNWRITEABLE), self::EXCEPTION_SQL_QUERY);
+                       throw new SqlException (array($this, sprintf("Cannot write data to table &#39;%s&#39;, is the table created?", $dataSetInstance->getTableName()), self::DB_CODE_TABLE_UNWRITEABLE), self::EXCEPTION_SQL_QUERY);
                }
        }
 
@@ -589,7 +589,7 @@ class LocalFileDatabase extends BaseDatabaseFrontend implements DatabaseFrontend
                        $this->lastError = $e->getMessage();
 
                        // Throw an SQL exception
-                       throw new SqlException (array($this, sprintf("Cannot write data to table &#39;%s&#39;", $dataSetInstance->getTableName()), self::DB_CODE_TABLE_UNWRITEABLE), self::EXCEPTION_SQL_QUERY);
+                       throw new SqlException (array($this, sprintf("Cannot write data to table &#39;%s&#39;, is the table created?", $dataSetInstance->getTableName()), self::DB_CODE_TABLE_UNWRITEABLE), self::EXCEPTION_SQL_QUERY);
                }
        }