Skip to content

Commit

Permalink
Merge pull request #93 from Quetzacoalt91/detect-error-step
Browse files Browse the repository at this point in the history
Detect error step
  • Loading branch information
Quetzacoalt91 authored Jun 29, 2018
2 parents f377a55 + 0178055 commit 7445c30
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion classes/TaskRunner/AllUpgradeTasks.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function run()
$this->step = $result->getNext();
}

return (int) ($this->error || $this->next === 'error');
return (int) ($this->error || $this->step === 'error');
}

/**
Expand Down
2 changes: 1 addition & 1 deletion classes/TaskRunner/Upgrade/Download.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public function run()
$this->logger->info($this->translator->trans('Download complete. Now extracting...', array(), 'Modules.Autoupgrade.Admin'));
} else {
$this->logger->error($this->translator->trans('Download complete but MD5 sum does not match (%s).', array($md5file), 'Modules.Autoupgrade.Admin'));
$this->logger->info($this->translator->trans('Download complete but MD5 sum does not match (%s). Operation aborted.', array(), 'Modules.Autoupgrade.Admin'));
$this->logger->info($this->translator->trans('Download complete but MD5 sum does not match (%s). Operation aborted.', array($md5file), 'Modules.Autoupgrade.Admin'));
$this->next = 'error';
}
} else {
Expand Down

0 comments on commit 7445c30

Please sign in to comment.