diff options
author | Robin Appelman <icewind@owncloud.com> | 2013-04-22 20:32:40 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2013-04-22 20:32:40 +0200 |
commit | 5942d5aeac174db001d76bcad6768cfc6dd6768a (patch) | |
tree | ac895d9810a27942e441a64976b3c50becf9e51c /lib | |
parent | c7a17efc0135b073b8b9f09cfc14da6acbfa7bbb (diff) | |
download | nextcloud-server-5942d5aeac174db001d76bcad6768cfc6dd6768a.tar.gz nextcloud-server-5942d5aeac174db001d76bcad6768cfc6dd6768a.zip |
Improve error message if user creation fails during setup
Diffstat (limited to 'lib')
-rw-r--r-- | lib/setup.php | 3 |
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) { |