modified phase error statement to be more descriptive. Added phase name to message. It was previously showing only the index number which is unhelpful.

This commit is contained in:
techdragon.nguyen@gmail.com
2010-11-20 11:49:28 +00:00
parent 36d25441e2
commit 510b91935f

View File

@@ -419,8 +419,9 @@ int TestSuite::assertGame()
GameObserver * g = GameObserver::GetInstance();
if (g->currentGamePhase != endState.phase)
{
sprintf(result, "<span class=\"error\">==phase problem. Expected %i, got %i==</span><br />", endState.phase,
g->currentGamePhase);
sprintf(result, "<span class=\"error\">==phase problem. Expected [ %s ](%i), got [ %s ](%i)==</span><br />",
Constants::MTGPhaseNames[endState.phase],endState.phase,
Constants::MTGPhaseNames[g->currentGamePhase], g->currentGamePhase);
Log(result);
error++;
}