Expanded log message with Exception and its actual message.
authorRoland Haeder <roland@mxchange.org>
Tue, 26 May 2015 21:17:41 +0000 (23:17 +0200)
committerRoland Haeder <roland@mxchange.org>
Tue, 26 May 2015 21:17:41 +0000 (23:17 +0200)
Signed-off-by: Roland H├Ąder <roland@mxchange.org>
inc/classes/main/database/backend/class_CachedLocalFileDatabase.php

index 7e486b1..a81dd3c 100644 (file)
@@ -583,7 +583,7 @@ class CachedLocalFileDatabase extends BaseDatabaseBackend implements DatabaseBac
                        $this->setLastException($e);
 
                        // Throw an SQL exception
-                       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);
+                       throw new SqlException(array($this, sprintf('Cannot write data to table &#39;%s&#39;, is the table created? Exception: %s, message:%s', $dataSetInstance->getTableName(), $e->__toString(), $e->getMessage()), self::DB_CODE_TABLE_UNWRITEABLE), self::EXCEPTION_SQL_QUERY);
                }
        }