]> source.dussan.org Git - nextcloud-server.git/commitdiff
Log exception when PostgreSQL version check failed
authorVincent Petry <pvince81@owncloud.com>
Mon, 24 Mar 2014 10:54:44 +0000 (11:54 +0100)
committerVincent Petry <pvince81@owncloud.com>
Mon, 24 Mar 2014 10:54:44 +0000 (11:54 +0100)
lib/private/util.php

index 54e04ce4d7a5486883a38cf8cc7c39f05dc61e71..d039d9f6a9657ee1670b0691cc55811d8fb13b5b 100755 (executable)
@@ -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'
                                );
                        }
                }