summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-04-22 13:28:18 -0700
committerBernhard Posselt <nukeawhale@gmail.com>2013-04-22 13:28:18 -0700
commit4af4a5bd98505673bf0207c7ae6efaa6fc15734a (patch)
treeeaa18c537bb550c97500ef03636ad30a3ea3239c /lib
parent8b490e0ec3cbad31833209f8df1d440a3b49a01f (diff)
parent5942d5aeac174db001d76bcad6768cfc6dd6768a (diff)
downloadnextcloud-server-4af4a5bd98505673bf0207c7ae6efaa6fc15734a.tar.gz
nextcloud-server-4af4a5bd98505673bf0207c7ae6efaa6fc15734a.zip
Merge pull request #3073 from owncloud/setup-error-message
Improve error message if user creation fails during setup
Diffstat (limited to 'lib')
-rw-r--r--lib/setup.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/setup.php b/lib/setup.php
index 769fae11656..c330729298e 100644
--- a/lib/setup.php
+++ b/lib/setup.php
@@ -187,6 +187,7 @@ class OC_Setup {
unlink("$datadir/owncloud.db");
}
//in case of sqlite, we can always fill the database
+ error_log("creating sqlite db");
OC_DB::createDbFromStructure('db_structure.xml');
}
@@ -195,7 +196,7 @@ class OC_Setup {
OC_User::createUser($username, $password);
}
catch(Exception $exception) {
- $error[] = $exception->getMessage();
+ $error[] = 'Error while trying to create admin user: ' . $exception->getMessage();
}
if(count($error) == 0) {