From a25b86a30e34204f9a67e3231b1975f7aaf527af Mon Sep 17 00:00:00 2001
From: Vincent Petry <pvince81@owncloud.com>
Date: Mon, 24 Mar 2014 11:54:44 +0100
Subject: [PATCH] Log exception when PostgreSQL version check failed

---
 lib/private/util.php | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lib/private/util.php b/lib/private/util.php
index 54e04ce4d7..d039d9f6a9 100755
--- a/lib/private/util.php
+++ b/lib/private/util.php
@@ -516,8 +516,10 @@ class OC_Util {
 				}
 			}
 			catch (\Doctrine\DBAL\DBALException $e){
+				\OCP\Util::logException('core', $e);
 				$errors[] = array(
-					'error' => 'PostgreSQL >= 9 required'
+					'error' => 'Error occurred while checking PostgreSQL version',
+					'hint' => 'Please make sure you have PostgreSQL >= 9 or check the logs for more information about the error'
 				);
 			}
 		}
-- 
GitLab