Add filename to mountAssetsFrom() error message

This will clarify which directory, exactly, failed to mount. I know it
gets printed earlier in the mounting process, but it can't hurt to print
it twice, just to be sure. Also this is for consistency.
This commit is contained in:
Misa authored and Ethan Lee committed 2021-04-05 16:39:37 -04:00
1 parent ff3cba9cee
commit 798bf9e490
1 file changed
+5 -1
+5 -1
View File
@@ -231,7 +231,11 @@ static bool FILESYSTEM_mountAssetsFrom(const char *fname)
if (!PHYSFS_mount(path, NULL, 0))
{
printf("Error mounting: %s\n", PHYSFS_getErrorByCode(PHYSFS_getLastErrorCode()));
printf(
"Error mounting %s: %s\n",
fname,
PHYSFS_getErrorByCode(PHYSFS_getLastErrorCode())
);
return false;
}