Browse Source

Improve error message if user creation fails during setup

tags/v6.0.0alpha2
Robin Appelman 11 years ago
parent
commit
5942d5aeac
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      lib/setup.php

+ 2
- 1
lib/setup.php View File

@@ -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) {

Loading…
Cancel
Save