Skip to content
Permalink
Browse files

3948 backup file check (#3953)

* Remove missing variable

* Add check of the file

* Add check of the backupfile

* Remove the file, it was committed accidentally
  • Loading branch information...
LOBsTerr committed Apr 10, 2019
1 parent efe17e2 commit 75f578481819eac80d1d7538b89f04016b3654c5
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Command/Database/RestoreCommand.php
@@ -77,7 +77,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
$learning = $input->getOption('learning');
$databaseConnection = $this->escapeConnection($this->resolveConnection($database, $target));
if (!$file) {
if (!$file || !file_exists($file)) {
$this->getIo()->error(
$this->trans('commands.database.restore.messages.no-file')
);

0 comments on commit 75f5784

Please sign in to comment.
You can’t perform that action at this time.