From ff15a84e7c4c8aa4f7d34c3d6bd82a5395a496e8 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Mon, 10 Dec 2007 03:14:54 +0000 Subject: [PATCH] added temporary debugging to ReadMapList() --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401784 --- core/smn_maplists.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/smn_maplists.cpp b/core/smn_maplists.cpp index 864751ee..4907bf14 100644 --- a/core/smn_maplists.cpp +++ b/core/smn_maplists.cpp @@ -524,6 +524,10 @@ private: if ((fp = fopen(pMapList->path, "rt")) == NULL) { + char error_msg[255]; + strncopy(error_msg, "Unknown error", sizeof(error_msg)); + g_LibSys.GetPlatformError(error_msg, sizeof(error_msg)); + g_Logger.LogError("ReadMapList(): Could not open file \"%s\": %s\n", pMapList->path, error_msg); return false; }