core/smn_maplists.cpp
changeset 1778 429a10ab4b67
parent 1749 905059740767
child 1783 e6e2f440376d
     1.1 --- a/core/smn_maplists.cpp	Sun Dec 09 21:45:23 2007 +0000
     1.2 +++ b/core/smn_maplists.cpp	Mon Dec 10 03:14:54 2007 +0000
     1.3 @@ -524,6 +524,10 @@
     1.4  
     1.5  			if ((fp = fopen(pMapList->path, "rt")) == NULL)
     1.6  			{
     1.7 +				char error_msg[255];
     1.8 +				strncopy(error_msg, "Unknown error", sizeof(error_msg));
     1.9 +				g_LibSys.GetPlatformError(error_msg, sizeof(error_msg));
    1.10 +				g_Logger.LogError("ReadMapList(): Could not open file \"%s\": %s\n", pMapList->path, error_msg);
    1.11  				return false;
    1.12  			}
    1.13