mirror of https://gitee.com/bigwinds/arangodb
Changed hardcoded error num in web interface to generated error object
This commit is contained in:
parent
7c9ece25ce
commit
d9156bc921
|
@ -12,6 +12,7 @@
|
||||||
return s.charAt(0).toUpperCase() + s.slice(1).toLowerCase();
|
return s.charAt(0).toUpperCase() + s.slice(1).toLowerCase();
|
||||||
}).join(" ");
|
}).join(" ");
|
||||||
};
|
};
|
||||||
|
var errors = require("internal").errors;
|
||||||
|
|
||||||
window.ApplicationsView = Backbone.View.extend({
|
window.ApplicationsView = Backbone.View.extend({
|
||||||
el: '#content',
|
el: '#content',
|
||||||
|
@ -444,8 +445,8 @@
|
||||||
this.showConfigureDialog(result.configuration, result.name, result.version);
|
this.showConfigureDialog(result.configuration, result.name, result.version);
|
||||||
} else {
|
} else {
|
||||||
switch(result.errorNum) {
|
switch(result.errorNum) {
|
||||||
case 1752:
|
case errors.ERROR_APPLICATION_DOWNLOAD_FAILED.code:
|
||||||
alert("Unable to download Application from the given repository");
|
alert("Unable to download Application from the given repository.");
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
alert("Error: " + result.errorNum + ". " + result.errorMessage);
|
alert("Error: " + result.errorNum + ". " + result.errorMessage);
|
||||||
|
|
Loading…
Reference in New Issue