mirror of https://gitee.com/bigwinds/arangodb
Merge branch 'devel' of https://github.com/triAGENS/ArangoDB into devel
This commit is contained in:
commit
d4084e97e4
|
@ -226,8 +226,8 @@ var internal = require("internal");
|
||||||
/// database only. Calling this action in any other database will make the server
|
/// database only. Calling this action in any other database will make the server
|
||||||
/// return an error.
|
/// return an error.
|
||||||
///
|
///
|
||||||
/// Futhermore, the last remaining endpoint cannot be deleted as this would
|
/// Futhermore, the last remaining endpoint cannot be deleted as this would make
|
||||||
/// render the server's HTTP interface useless.
|
/// the server kaputt.
|
||||||
///
|
///
|
||||||
/// @RESTRETURNCODES
|
/// @RESTRETURNCODES
|
||||||
///
|
///
|
||||||
|
|
|
@ -597,7 +597,17 @@
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
processData: false,
|
processData: false,
|
||||||
success: function (data) {
|
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");
|
self.switchTab("result-switch");
|
||||||
window.progressView.hide();
|
window.progressView.hide();
|
||||||
self.deselect(outputEditor);
|
self.deselect(outputEditor);
|
||||||
|
|
Loading…
Reference in New Issue