Use strerror when file transfer can't be opened

This commit is contained in:
Sally Coolatta 2022-12-19 06:11:37 -05:00
parent fcddbdeaa1
commit 533dc7d668

View file

@ -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);