diff --git a/pandora_console/install.php b/pandora_console/install.php
index ba5c7f60bf..f8e096e528 100644
--- a/pandora_console/install.php
+++ b/pandora_console/install.php
@@ -923,13 +923,21 @@ function install_step4()
$step2 = mysql_select_db($dbname);
check_generic($step2, "Opening database '$dbname'");
- echo '
';
$step3 = parse_mysql_dump('pandoradb.sql');
- echo '
';
+
+ if ($step3 !== 0 && $step3 !== 1) {
+ $errors[] = $step3;
+ $step3 = 0;
+ }
+
check_generic($step3, 'Creating schema');
- echo '';
$step4 = parse_mysql_dump('pandoradb_data.sql');
- echo '
';
+
+ if ($step4 !== 0 && $step4 !== 1) {
+ $errors[] = $step4;
+ $step4 = 0;
+ }
+
check_generic($step4, 'Populating database');
if (PHP_OS == 'FreeBSD') {
$step_freebsd = adjust_paths_for_freebsd($engine);
@@ -1039,17 +1047,18 @@ function install_step4()
check_generic($step2, "Opening database '$dbname'");
$step3 = parse_mysqli_dump($connection, 'pandoradb.sql');
-
- if ($step3 !== 0) {
+ if ($step3 !== 0 && $step3 !== 1) {
$errors[] = $step3;
+ $step3 = 0;
}
check_generic($step3, 'Creating schema');
$step4 = parse_mysqli_dump($connection, 'pandoradb_data.sql');
- if ($step4 !== 0) {
+ if ($step4 !== 0 && $step4 !== 1) {
$errors[] = $step4;
+ $step4 = 0;
}
check_generic($step4, 'Populating database');
@@ -1149,11 +1158,21 @@ function install_step4()
echo '';
echo '';
echo '';
+
if ($everything_ok !== 1) {
- $info = "
There were some problems.
+ $info = '';
+
+ if (!empty($errors)) {
+ foreach ($errors as $key => $err) {
+ $info .= ''.$err.'
';
+ }
+ }
+
+ $info .= "There were some problems.
Installation was not completed.
Please correct failures before trying again.
All database ";
+
if ($engine == 'oracle') {
$info .= 'objects ';
} else {