1
0
Fork 0

Changed hardcoded error num in web interface to generated error object

This commit is contained in:
Michael Hackstein 2014-12-16 17:03:55 +01:00
parent 7c9ece25ce
commit d9156bc921
1 changed files with 3 additions and 2 deletions

View File

@ -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);