mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-26 12:21:19 +00:00
Use strerror when file transfer can't be opened
This commit is contained in:
parent
fcddbdeaa1
commit
533dc7d668
1 changed files with 4 additions and 2 deletions
|
@ -852,8 +852,10 @@ void SV_FileSendTicker(void)
|
||||||
fopen(f->id.filename, "rb");
|
fopen(f->id.filename, "rb");
|
||||||
|
|
||||||
if (!transfer[i].currentfile)
|
if (!transfer[i].currentfile)
|
||||||
I_Error("File %s does not exist",
|
{
|
||||||
f->id.filename);
|
I_Error("Can't open file %s: %s",
|
||||||
|
f->id.filename, strerror(errno));
|
||||||
|
}
|
||||||
|
|
||||||
fseek(transfer[i].currentfile, 0, SEEK_END);
|
fseek(transfer[i].currentfile, 0, SEEK_END);
|
||||||
filesize = ftell(transfer[i].currentfile);
|
filesize = ftell(transfer[i].currentfile);
|
||||||
|
|
Loading…
Reference in a new issue