From 677b35fb05552d1b3abcfc1b56ee9300bb08d346 Mon Sep 17 00:00:00 2001 From: Willi Goesgens Date: Tue, 3 Mar 2015 10:29:38 +0100 Subject: [PATCH] Fix typo. --- js/server/modules/org/arangodb/testing.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/server/modules/org/arangodb/testing.js b/js/server/modules/org/arangodb/testing.js index 82f9ee7ccf..2d13f4bdbd 100644 --- a/js/server/modules/org/arangodb/testing.js +++ b/js/server/modules/org/arangodb/testing.js @@ -786,7 +786,9 @@ function runInArangosh (options, instanceInfo, file, addArgs) { catch(x) { return rc; } - if (result[0].HasOwnProperty('status')) { + print(result); + if ((typeof(result[0]) === 'object') && + result[0].hasOwnProperty('status')) { return result[0]; } else {