[FOLLOWUP][TASK] DatabaseSessionBackend: Pass on DB exception information 58/51658/2
authorMarkus Klein <markus.klein@typo3.org>
Mon, 13 Feb 2017 15:20:19 +0000 (16:20 +0100)
committerAndreas Fernandez <typo3@scripting-base.de>
Mon, 13 Feb 2017 15:50:55 +0000 (16:50 +0100)
Shorten exception messages.

Resolves: #79781
Releases: master
Change-Id: I4b16c02c4f74dc667e0ce7f5baf525e50c49234a
Reviewed-on: https://review.typo3.org/51658
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
typo3/sysext/core/Classes/Session/Backend/DatabaseSessionBackend.php

index 2827caa..58a4a8b 100644 (file)
@@ -137,7 +137,7 @@ class DatabaseSessionBackend implements SessionBackendInterface
             );
         } catch (DBALException $e) {
             throw new SessionNotCreatedException(
-                'Session could not be written to database Reason: ' . $e->getMessage(),
+                'Session could not be written to database: ' . $e->getMessage(),
                 1481895005,
                 $e
             );
@@ -171,7 +171,7 @@ class DatabaseSessionBackend implements SessionBackendInterface
             );
         } catch (DBALException $e) {
             throw new SessionNotUpdatedException(
-                'Session with id ' . $sessionId . ' could not be updated. Reason: ' . $e->getMessage(),
+                'Session with id ' . $sessionId . ' could not be updated: ' . $e->getMessage(),
                 1481889220,
                 $e
             );