mirror of https://gitee.com/bigwinds/arangodb
show warnings in aql result
This commit is contained in:
parent
e5d9379ac5
commit
f8bd383808
|
@ -597,7 +597,17 @@
|
|||
contentType: "application/json",
|
||||
processData: false,
|
||||
success: function (data) {
|
||||
outputEditor.setValue(JSON.stringify(data.result, undefined, 2));
|
||||
var warnings = "";
|
||||
if (data.extra.warnings.length > 0) {
|
||||
warnings += "Warnings:" + "\r\n\r\n";
|
||||
data.extra.warnings.forEach(function(w) {
|
||||
warnings += "[" + w.code + "], '" + w.message + "'\r\n";
|
||||
});
|
||||
}
|
||||
if (warnings !== "") {
|
||||
warnings += "\r\n" + "Result:" + "\r\n\r\n";
|
||||
}
|
||||
outputEditor.setValue(warnings + JSON.stringify(data.result, undefined, 2));
|
||||
self.switchTab("result-switch");
|
||||
window.progressView.hide();
|
||||
self.deselect(outputEditor);
|
||||
|
|
Loading…
Reference in New Issue