diff --git a/include/class.ostsession.php b/include/class.ostsession.php
index 0b372f291594046e4d3082b4b6723c1a18c1ae04..d93de839a9770e422dcde63205060af27ff95fa7 100644
--- a/include/class.ostsession.php
+++ b/include/class.ostsession.php
@@ -66,6 +66,7 @@ class osTicketSession {
         }
         catch (Exception $x) {
             // Use the database for sessions
+            trigger_error($x->getMessage(), E_USER_WARNING);
             $this->backend = new self::$backends['db']($this->ttl);
         }