Skip to content
Snippets Groups Projects
Commit 762d56cf authored by Jared Hancock's avatar Jared Hancock
Browse files

Implement Upgrader::abort

Add forgotten abort() method of the Upgrader trampoline class, and allow
getErrors() not to crash if not upgrading
parent c477b20c
No related branches found
No related tags found
No related merge requests found
......@@ -61,6 +61,11 @@ class Upgrader {
return !strcasecmp($this->getState(), 'aborted');
}
function abort($msg, $debug=false) {
if ($this->getCurrentStream())
$this->getCurrentStream()->abort($msg, $debug);
}
function getState() {
return $this->state;
}
......@@ -108,7 +113,8 @@ class Upgrader {
}
function getErrors() {
return $this->getCurrentStream()->getError();
if ($this->getCurrentStream())
return $this->getCurrentStream()->getError();
}
function getNextAction() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment