From 798bf9e490798fa55f88ae5b8aeb76eaccf48f2b Mon Sep 17 00:00:00 2001 From: Misa Date: Mon, 5 Apr 2021 01:07:43 -0700 Subject: [PATCH] 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. --- desktop_version/src/FileSystemUtils.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/desktop_version/src/FileSystemUtils.cpp b/desktop_version/src/FileSystemUtils.cpp index e8b0ba4b..3c21c5fd 100644 --- a/desktop_version/src/FileSystemUtils.cpp +++ b/desktop_version/src/FileSystemUtils.cpp @@ -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; }