Browse Source

Improve the error message when love.filesystem.init fails.

Alex Szpakowski 7 years ago
parent
commit
a461f2d7af
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/modules/filesystem/physfs/Filesystem.cpp

+ 1 - 1
src/modules/filesystem/physfs/Filesystem.cpp

@@ -120,7 +120,7 @@ const char *Filesystem::getName() const
 void Filesystem::init(const char *arg0)
 {
 	if (!PHYSFS_init(arg0))
-		throw love::Exception("%s", PHYSFS_getErrorByCode(PHYSFS_getLastErrorCode()));
+		throw love::Exception("Failed to initialize filesystem: %s", PHYSFS_getErrorByCode(PHYSFS_getLastErrorCode()));
 
 	// Enable symlinks by default.
 	setSymlinksEnabled(true);