takeupload.php check torrent exists or not

This commit is contained in:
xiaomlove
2021-06-15 19:05:38 +08:00
parent 7727ffc970
commit 818240aa0c
2 changed files with 10 additions and 2 deletions

View File

@@ -27,9 +27,13 @@ try {
} else {
$result = autoclean();
}
do_log("[CLEANUP_CLI DONE!] $result");
$log = "[CLEANUP_CLI DONE!] $result";
do_log($log);
printProgress($log);
} catch (\Exception $exception) {
do_log("ERROR: " . $exception->getMessage());
$log = "ERROR: " . $exception->getMessage();
do_log($log);
printProgress($log);
throw new \RuntimeException($exception->getMessage());
}