1
0
Fork 0

Fixed a minor problem with Babies API

This commit is contained in:
Michael Hackstein 2016-04-07 11:08:52 +02:00
parent 75e1627a85
commit d8c44e03d2
1 changed files with 2 additions and 1 deletions

View File

@ -697,7 +697,8 @@ int createDocumentOnCoordinator(
}
resultMap.emplace(res.shardID, tmpBuilder);
} else {
resultMap.emplace(res.shardID, res.result->getBodyVelocyPack());
resultMap.emplace(res.shardID,
res.answer->toVelocyPack(&VPackOptions::Defaults));
auto resultHeaders = res.answer->headers();
auto codes = resultHeaders.find("X-Arango-Error-Codes");
if (codes != resultHeaders.end()) {