diff --git a/pandora_console/install.php b/pandora_console/install.php
index be9ffb0865..ba5c7f60bf 100644
--- a/pandora_console/install.php
+++ b/pandora_console/install.php
@@ -333,9 +333,10 @@ function parse_mysqli_dump($connection, $url)
$query .= $sql_line;
if (preg_match("/;[\040]*\$/", $sql_line)) {
if (!$result = mysqli_query($connection, $query)) {
- echo mysqli_error($connection);
- // Uncomment for debug
- echo "
$query
";
+ if (mysqli_error($connection)) {
+ return mysqli_error($connection).'
'.$query.'
';
+ }
+
return 0;
}
@@ -888,7 +889,7 @@ function install_step4()
$step5 = 0;
$step6 = 0;
$step7 = 0;
-
+ $errors = [];
echo "