Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cf62a51

Browse files
committed
Merge branch 'Chi-teck-sql-dump-message'
2 parents cbd90d5 + 73cda12 commit cf62a51

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Commands/sql/SqlCommands.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,10 @@ public function dump($options = ['result-file' => self::REQ, 'create-db' => fals
236236
throw new \Exception('Unable to dump database. Rerun with --debug to see any error message.');
237237
}
238238

239-
$this->logger()->success(dt('Database dump saved to !path', ['!path' => $return]));
239+
// SqlBase::dump() returns null if 'result-file' option is empty.
240+
if ($return) {
241+
$this->logger()->success(dt('Database dump saved to !path', ['!path' => $return]));
242+
}
240243
return new PropertyList(['path' => $return]);
241244
}
242245

0 commit comments

Comments
 (0)