1
0
Fork 0

Make errormessage sound more like normal language.

This commit is contained in:
Willi Goesgens 2014-10-27 15:38:09 +01:00
parent 896c6f591e
commit 03cbca59e4
1 changed files with 7 additions and 7 deletions

View File

@ -54,13 +54,13 @@ using Json = triagens::basics::Json;
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
static std::string StateNames[] = { static std::string StateNames[] = {
"initialization", // INITIALIZATION "initializing", // INITIALIZATION
"parsing", // PARSING "parsing", // PARSING
"ast optimization", // AST_OPTIMIZATION "ast optimizing", // AST_OPTIMIZATION
"plan instanciation", // PLAN_INSTANCIATION "plan instanciating", // PLAN_INSTANCIATION
"plan optimization", // PLAN_OPTIMIZATION "plan optimizing", // PLAN_OPTIMIZATION
"execution", // EXECUTION "executing", // EXECUTION
"finalization" // FINALIZATION "finalizating" // FINALIZATION
}; };
// make sure the state strings and the actual states match // make sure the state strings and the actual states match
@ -991,7 +991,7 @@ void Query::enterState (ExecutionState state) {
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
std::string Query::getStateString () const { std::string Query::getStateString () const {
return "in state '" + StateNames[_state] + "': "; return "while " + StateNames[_state] + ": ";
} }
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////