mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-26 04:11:18 +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");
|
||||
|
||||
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);
|
||||
filesize = ftell(transfer[i].currentfile);
|
||||
|
|
Loading…
Reference in a new issue