]> source.dussan.org Git - nextcloud-server.git/commitdiff
Improve error message if user creation fails during setup
authorRobin Appelman <icewind@owncloud.com>
Mon, 22 Apr 2013 18:32:40 +0000 (20:32 +0200)
committerRobin Appelman <icewind@owncloud.com>
Mon, 22 Apr 2013 18:32:40 +0000 (20:32 +0200)
lib/setup.php

index 769fae11656c33dc79338aac83d282c56e2c2bf3..c330729298e1891286f29dc6263acd64e287ce20 100644 (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) {