Bug 920092 - ensure printing human readable error message on app install error. r=paul

This commit is contained in:
Alexandre Poirot 2013-09-25 09:37:21 -04:00
parent 628ae5cc73
commit cb3bc8b1f5

View File

@ -320,10 +320,11 @@ let UI = {
// And only when the toolbox is opened, release the button
button.disabled = false;
},
(msg) => {
(err) => {
button.disabled = false;
alert(msg);
this.connection.log(msg);
let message = err.error ? err.error + ": " + err.message : String(err);
alert(message);
this.connection.log(message);
});
},