Automatic push 4.1.1

This commit is contained in:
chevereto
2024-04-27 20:56:57 +00:00
parent b47fbf6bd8
commit 7311e9fc52
2 changed files with 8 additions and 6 deletions

View File

@@ -16,3 +16,4 @@ Chevereto 4.1.1 (2024-04-27)
- 🐞 Fixed bug with not working URL upload
- 🐞 Fixed bug with video upload not working on iOS
- 🐞 Fixed bug with file-upload documentation link
- 🇨🇱 Updated Spanish translation

View File

@@ -352,12 +352,13 @@ function downloadAction(string $workingDir, array $params): Response
$zipBall = str_replace('%tag%', $tag, $zipBall);
$isPost = true;
$curl = downloadFile($zipBall, $params, $filePath, $isPost);
throw new RuntimeException(
$curl->json->error->message
. sprintf(' [%s]', $curl->json->error->code),
$curl->json->status_code
);
if (isset($curl->json->error)) {
throw new RuntimeException(
$curl->json->error->message
. sprintf(' [%s]', $curl->json->error->code),
$curl->json->status_code
);
}
if ($curl->transfer['http_code'] !== 200) {
$error = '[HTTP ' . $curl->transfer['http_code'] . '] ' . $zipBall;