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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user