diff --git a/tests/js/server/resilience/moving-shards-with-arangosearch-view-cluster.js b/tests/js/server/resilience/moving-shards-with-arangosearch-view-cluster.js index 0ff9f4c639..8f328bd0d4 100644 --- a/tests/js/server/resilience/moving-shards-with-arangosearch-view-cluster.js +++ b/tests/js/server/resilience/moving-shards-with-arangosearch-view-cluster.js @@ -435,9 +435,11 @@ function MovingShardsWithViewSuite (options) { throw err; } const body = res.body; - if (typeof body !== "string") { + const type = typeof body; + if (type !== "string") { + const info = JSON.stringify(res); console.error(`Error after GET ${url}; body is not a string`); - throw new Error("body is not a string"); + throw new Error(`Error after GET ${url}; body is not a string, but a ${type}: ${info}`); } const parsedBody = JSON.parse(body);