do not throw Cleaner error

This commit is contained in:
Jean-Christian Paul Denis 2023-04-15 21:05:39 +02:00
parent e7ad6b0178
commit 8bb78ca569
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951

View File

@ -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;
} }
} }