Skip to content
Snippets Groups Projects
Commit 5942d5ae authored by Robin Appelman's avatar Robin Appelman
Browse files

Improve error message if user creation fails during setup

parent c7a17efc
No related branches found
No related tags found
No related merge requests found
...@@ -187,6 +187,7 @@ class OC_Setup { ...@@ -187,6 +187,7 @@ class OC_Setup {
unlink("$datadir/owncloud.db"); unlink("$datadir/owncloud.db");
} }
//in case of sqlite, we can always fill the database //in case of sqlite, we can always fill the database
error_log("creating sqlite db");
OC_DB::createDbFromStructure('db_structure.xml'); OC_DB::createDbFromStructure('db_structure.xml');
} }
...@@ -195,7 +196,7 @@ class OC_Setup { ...@@ -195,7 +196,7 @@ class OC_Setup {
OC_User::createUser($username, $password); OC_User::createUser($username, $password);
} }
catch(Exception $exception) { catch(Exception $exception) {
$error[] = $exception->getMessage(); $error[] = 'Error while trying to create admin user: ' . $exception->getMessage();
} }
if(count($error) == 0) { if(count($error) == 0) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment