#1401: misspelling ActiveThorns in parfiles results in unhelpful error message ---------------------+------------------------------------------------------ Reporter: rhaas | Owner: sbrandt Type: defect | Status: reviewed_ok Priority: minor | Milestone: Component: Cactus | Version: development version Resolution: | Keywords: ---------------------+------------------------------------------------------
Comment (by sbrandt):
New error message is output instead of old. It includes the LHS from the parameter file:
if(m2->inrule_max == "file::set::par" && m2->foundChar() =='=') { msg << std::endl; msg << "Invalid assignment." << std::endl; msg << "Valid assignments are: " << std::endl; msg << "ActiveThorns = "..."" << std::endl; msg << "Arrangement::Thorn = ..." << std::endl; ... msg << "You wrote: " << gr->substring() << " = ..." << std::endl; } else { m2->showError(msg); // default error message }