mirror of
https://github.com/nextcloud/server.git
synced 2024-07-25 05:44:55 +02:00
Merge pull request #3073 from owncloud/setup-error-message
Improve error message if user creation fails during setup
This commit is contained in:
commit
4af4a5bd98
@ -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…
Reference in New Issue
Block a user