do not throw Cleaner error
This commit is contained in:
parent
e7ad6b0178
commit
8bb78ca569
@ -90,14 +90,6 @@ class Cleaners
|
|||||||
# --BEHAVIOR-- UninstallerBeforeAction: string, string, string
|
# --BEHAVIOR-- UninstallerBeforeAction: string, string, string
|
||||||
dcCore::app()->callBehavior('UninstallerBeforeAction', $id, $action, $ns);
|
dcCore::app()->callBehavior('UninstallerBeforeAction', $id, $action, $ns);
|
||||||
|
|
||||||
$ret = $this->cleaners[$id]->execute($action, $ns);
|
return $this->cleaners[$id]->execute($action, $ns);
|
||||||
|
|
||||||
if ($ret === false) {
|
|
||||||
$msg = $this->cleaners[$id]->actions[$action]->error;
|
|
||||||
|
|
||||||
throw new Exception($msg ?: __('Unknown error'));
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user