diff options
author | Jan-Christoph Borchardt <JanCBorchardt@fsfe.org> | 2011-08-13 05:37:12 +0200 |
---|---|---|
committer | Jan-Christoph Borchardt <JanCBorchardt@fsfe.org> | 2011-08-13 05:37:12 +0200 |
commit | 9648be97fbc60167493726d2180c25e26ff90919 (patch) | |
tree | 2ac6db969b77bf2ac822506ddea2cb5c95dbe198 /lib | |
parent | 9be059aced589bea38b7d8cf9553b32c9921dc66 (diff) | |
download | nextcloud-server-9648be97fbc60167493726d2180c25e26ff90919.tar.gz nextcloud-server-9648be97fbc60167493726d2180c25e26ff90919.zip |
better error messages for installation, still need to be inline
Diffstat (limited to 'lib')
-rw-r--r-- | lib/setup.php | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/lib/setup.php b/lib/setup.php index c7259d6b8ce..8386846358b 100644 --- a/lib/setup.php +++ b/lib/setup.php @@ -37,13 +37,13 @@ class OC_Setup { $dbtype = $options['dbtype']; if(empty($options['adminlogin'])) { - $error[] = 'STEP 1 : admin login is not set.'; + $error[] = 'Set an admin username.'; } if(empty($options['adminpass'])) { - $error[] = 'STEP 1 : admin password is not set.'; + $error[] = 'Set an admin password.'; } if(empty($options['directory'])) { - $error[] = 'STEP 2 : data directory path is not set.'; + $error[] = 'Specify a data folder.'; } if($dbtype=='mysql' or $dbtype=='pgsql') { //mysql and postgresql needs more config options @@ -53,19 +53,19 @@ class OC_Setup { $dbprettyname = 'PostgreSQL'; if(empty($options['dbuser'])) { - $error[] = "STEP 3 : $dbprettyname database user is not set."; + $error[] = "$dbprettyname enter the database username."; } if(empty($options['dbpass'])) { - $error[] = "STEP 3 : $dbprettyname database password is not set."; + $error[] = "$dbprettyname enter the database password."; } if(empty($options['dbname'])) { - $error[] = "STEP 3 : $dbprettyname database name is not set."; + $error[] = "$dbprettyname enter the database name."; } if(empty($options['dbhost'])) { - $error[] = "STEP 3 : $dbprettyname database host is not set."; + $error[] = "$dbprettyname set the database host."; } if(!isset($options['dbtableprefix'])) { - $error[] = "STEP 3 : $dbprettyname database table prefix is not set."; + $error[] = "$dbprettyname set a table prefix."; } } @@ -97,8 +97,8 @@ class OC_Setup { $connection = @mysql_connect($dbhost, $dbuser, $dbpass); if(!$connection) { $error[] = array( - 'error' => 'mysql username and/or password not valid', - 'hint' => 'you need to enter either an existing account, or the administrative account if you wish to create a new user for ownCloud' + 'error' => 'MySQL username and/or password not valid', + 'hint' => 'You need to enter either an existing account or the administrator.' ); } else { @@ -151,8 +151,8 @@ class OC_Setup { $connection = @pg_connect($connection_string); if(!$connection) { $error[] = array( - 'error' => 'postgresql username and/or password not valid', - 'hint' => 'you need to enter either an existing account, or the administrative account if you wish to create a new user for ownCloud' + 'error' => 'PostgreSQL username and/or password not valid', + 'hint' => 'You need to enter either an existing account or the administrator.' ); } else { |