mirror of
https://codeberg.org/spire/mapdownloader.git
synced 2026-06-03 10:14:12 +02:00
delete downloaded file on curl error
This commit is contained in:
parent
a688b2fbbd
commit
b44e863846
1 changed files with 1 additions and 0 deletions
|
|
@ -88,6 +88,7 @@ public onComplete(Handle:hndl, CURLcode:code, any hDLPack) {
|
|||
curl_easy_strerror(code, sError, sizeof(sError));
|
||||
PrintToChatAll("cURL error: %s", sError);
|
||||
PrintToChatAll("cURL error code: %d", code);
|
||||
DeleteFile(targetPath);
|
||||
} else {
|
||||
//PrintToChatAll("map size(%s): %d", targetPath, FileSize(targetPath));
|
||||
if (FileSize(targetPath) < 1024) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue