8000 added more info about expect and received value · orakle/arangodb@2aba20d · GitHub
[go: up one dir, main page]

Skip to content

Commit 2aba20d

Browse files
committed
added more info about expect and received value
1 parent 34b83c9 commit 2aba20d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

arangod/RestHandler/RestImportHandler.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1462,9 +1462,11 @@ TRI_json_t* RestImportHandler::createJsonObject (TRI_json_t const* keys,
14621462
}
14631463

14641464
size_t const n = TRI_LengthArrayJson(keys);
1465+
size_t const m = TRI_LengthArrayJson(values);
14651466

1466-
if (n != TRI_LengthArrayJson(values)) {
1467-
errorMsg = positionise(lineNumber) + "wrong number of JSON values";
1467+
if (n != m) {
1468+
errorMsg = positionise(lineNumber) + "wrong number of JSON values (got "
1469+
+ to_string(m) + ", expected " + to_string(n) + ")";
14681470
return nullptr;
14691471
}
14701472

0 commit comments

Comments
 (0)
0