mirror of https://gitee.com/bigwinds/arangodb
Make errormessage sound more like normal language.
This commit is contained in:
parent
896c6f591e
commit
03cbca59e4
|
@ -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] + ": ";
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
Loading…
Reference in New Issue