Commit fe199b60 authored by Michael Kaply's avatar Michael Kaply
Browse files

Bug 1568946 - Add better errors when addon install policy fails. r=aswan

Differential Revision: https://phabricator.services.mozilla.com/D39398

--HG--
extra : moz-landing-system : lando
parent 260a6f0f
......@@ -1586,12 +1586,20 @@ function installAddonFromURL(url, extensionID) {
},
onDownloadFailed: () => {
install.removeListener(listener);
log.error(`Download failed - ${url}`);
log.error(
`Download failed - ${AddonManager.errorToString(
install.error
)} - ${url}`
);
clearRunOnceModification("extensionsInstall");
},
onInstallFailed: () => {
install.removeListener(listener);
log.error(`Installation failed - ${url}`);
log.error(
`Installation failed - ${AddonManager.errorToString(
install.error
)} - {url}`
);
},
onInstallEnded: () => {
install.removeListener(listener);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment