Commit 64ffdf72 authored by anarcat's avatar anarcat Committed by anarcat
Browse files

include the output of the mysql command when loading the database dump to ease debugging

parent 5288f576
......@@ -164,7 +164,7 @@ function _provision_mysql_import_dump($dump_file, $db_name, $db_user, $db_passwd
drush_log(sprintf("Importing database using command: mysql -u%s -p%s -h%s %s < %s",
$db_user, $db_passwd, $db_host, $db_name, $dump_file));
if (!provision_shell_exec("mysql -u%s -p%s -h%s %s < %s", $db_user, $db_passwd, $db_host, $db_name, $dump_file )) {
drush_set_error('PROVISION_DB_IMPORT_FAILED', dt("Database import failed"));
drush_set_error('PROVISION_DB_IMPORT_FAILED', dt("Database import failed: %output", array('%output' => join("\n", drush_shell_exec_output()))));
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment