1
0
Fork 0

Bug fix 3.3/graph direction wrong to throw (#5384)

This commit is contained in:
Wilfried Goesgens 2018-05-25 19:25:06 +02:00 committed by Jan
parent 2384acd69a
commit 3614e9ae4e
1 changed files with 2 additions and 3 deletions

View File

@ -271,15 +271,14 @@ GraphNode::GraphNode(ExecutionPlan* plan,
uint64_t dir = arangodb::basics::VelocyPackHelper::stringUInt64(it);
TRI_edge_direction_e d;
switch (dir) {
case 0:
TRI_ASSERT(false);
break;
case 1:
d = TRI_EDGE_IN;
break;
case 2:
d = TRI_EDGE_OUT;
break;
case 0:
TRI_ASSERT(false);
default:
THROW_ARANGO_EXCEPTION_MESSAGE(TRI_ERROR_BAD_PARAMETER,
"Invalid direction value");