simplify download error message

This commit is contained in:
crazywhalecc
2023-10-23 20:12:47 +08:00
parent 8a70da6291
commit 9b9644fe63
2 changed files with 102 additions and 97 deletions

View File

@@ -335,7 +335,7 @@ class Downloader
logger()->warning('Deleting download file: ' . $filename);
unlink(DOWNLOAD_PATH . '/' . $filename);
}
throw $e;
throw new DownloaderException('Download failed! ' . $e->getMessage());
}
}