Don't print chart detached unless there are charts.

Missing error message when mix solution not found.

git-svn-id: svn://136.177.114.72/svn_GW/phreeqc3/trunk@6781 1feff8c3-07ed-0310-ac33-dd36852eb9cd
This commit is contained in:
David L Parkhurst 2012-07-13 19:32:08 +00:00
parent 81521287cf
commit 64024732db
2 changed files with 7 additions and 2 deletions

View File

@ -163,8 +163,10 @@ ChartHandler::End_timer()
//}
}
}
//if (chart_map.size() > 0 && i < max_tries && i2 < max_tries)
screen_msg("\rCharts detached. \n");
if (chart_map.size() > 0)
{
screen_msg("\rCharts detached. \n");
}
this->timer = false;
return true;

View File

@ -619,6 +619,9 @@ add_mix(cxxMix *mix_ptr)
solution_ptr = Utilities::Rxn_find(Rxn_solution_map, it->first);
if (solution_ptr == NULL)
{
error_string = sformatf( "Mix solution not found, %d.",
it->first);
error_msg(error_string, CONTINUE);
input_error++;
continue;
}