better error message

This commit is contained in:
Christian Grothoff
2024-11-29 19:03:26 +01:00
parent dd6aa6e582
commit 2ae29c6a02
+3 -1
View File
@@ -678,7 +678,9 @@ MHDT_load_pem (const char *name)
if (s.st_size > (off_t) SIZE_MAX)
{
fprintf (stderr,
"File too large to malloc()\n");
"File %s too large (%llu bytes) to malloc()\n",
path,
(unsigned long long) s.st_size);
(void) close (fd);
return NULL;
}