Commit 24e07a71 authored by mig5's avatar mig5 Committed by mig5

Revert "fix regression: print mysqldump output on failures"

This reverts commit 1f589c294fda19e9e33462ea22fa6a2a1645460e.
parent 20f83afa
......@@ -113,12 +113,6 @@ class provisionService_db_mysql extends provisionService_db_pdo {
$cmd = sprintf('mysqldump --defaults-file=/dev/fd/3 -r%s/database.sql %s', escapeshellcmd(d()->site_path), escapeshellcmd(drush_get_option('db_name')));
$success = $this->safe_shell_exec($cmd, drush_get_option('db_host'), urldecode(drush_get_option('db_user')), urldecode(drush_get_option('db_passwd')));
if (drush_get_context('DRUSH_VERBOSE') || !$success) {
foreach ($output as $line) {
drush_print($line);
}
}
if (!$success && !drush_get_option('force', false)) {
drush_set_error('PROVISION_BACKUP_FAILED', dt('Could not generate database backup from mysqldump. (error: %msg)', array('%msg' => $this->safe_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