Some basic error handling when load of a .mle file fails.

See bug #823.


git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2212 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
meep-eep
2006-01-20 05:54:16 +00:00
parent 507a30e01b
commit 3bdd7641db
+9 -1
View File
@@ -1044,7 +1044,15 @@ GetNewList:
if (status == -1)
{
DeleteResFile (meleeDir, file);
fprintf(stderr, "Could not load '%s'\n", file);
BOOLEAN deleteStatus = DeleteResFile (meleeDir, file);
if (deleteStatus == FALSE)
{
// XXX: see bug #823
fprintf(stderr, "FATAL: Could not delete '%s'\n", file);
abort();
}
goto GetNewList;
}