From d464d694067b2b0cbc45b61b5b346bce1b57611c Mon Sep 17 00:00:00 2001 From: hkernbach Date: Fri, 1 Apr 2016 15:41:20 +0200 Subject: [PATCH] query view now reacts to a killed query --- .../aardvark/APP/frontend/js/views/queryView2.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/js/apps/system/_admin/aardvark/APP/frontend/js/views/queryView2.js b/js/apps/system/_admin/aardvark/APP/frontend/js/views/queryView2.js index 6441912edf..cede4e1dab 100644 --- a/js/apps/system/_admin/aardvark/APP/frontend/js/views/queryView2.js +++ b/js/apps/system/_admin/aardvark/APP/frontend/js/views/queryView2.js @@ -1377,6 +1377,13 @@ }, error: function (resp) { try { + + if (resp.statusText === 'Gone') { + arangoHelper.arangoNotification("Query", "Query execution aborted."); + self.removeOutputEditor(counter); + return; + } + var error = JSON.parse(resp.responseText); if (error.errorMessage) { if (error.errorMessage.match(/\d+:\d+/g) !== null) { @@ -1395,7 +1402,8 @@ } } catch (e) { - arangoHelper.arangoError("Query", "Something went wrong."); + arangoHelper.arangoError("Query", "Successfully aborted."); + console.log(e); self.removeOutputEditor(counter); }