From 87a44013873044b49cae17840dd540a245554229 Mon Sep 17 00:00:00 2001 From: Alexandre Poirot Date: Wed, 25 Sep 2013 09:37:21 -0400 Subject: [PATCH] Bug 920092 - ensure printing human readable error message on app install error. r=paul --- browser/devtools/app-manager/content/projects.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/browser/devtools/app-manager/content/projects.js b/browser/devtools/app-manager/content/projects.js index 02eea406804..dbc39342cfe 100644 --- a/browser/devtools/app-manager/content/projects.js +++ b/browser/devtools/app-manager/content/projects.js @@ -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); }); },