Bug 1333713 Fix error message r=me
authorAndrew Swan <aswan@mozilla.com>
Wed, 15 Feb 2017 15:02:31 -0800
changeset 343219 6e70c857f61b33950b695f2dbb1f7b6351a3c397
parent 343218 eb3b5ef730656f41a31d5b537a83553337c4a549
child 343220 09ca7a2cc13a3f6181095d23d27daabe3422d857
push id31372
push usercbook@mozilla.com
push dateThu, 16 Feb 2017 12:16:10 +0000
treeherdermozilla-central@2737f66ad6ac [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1333713
milestone54.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1333713 Fix error message r=me MozReview-Commit-ID: Gkq8xyLzKIi
toolkit/mozapps/extensions/internal/XPIProvider.jsm
--- a/toolkit/mozapps/extensions/internal/XPIProvider.jsm
+++ b/toolkit/mozapps/extensions/internal/XPIProvider.jsm
@@ -5518,17 +5518,17 @@ class AddonInstall {
         return Promise.reject([AddonManager.ERROR_CORRUPT_FILE, err]);
       }
 
       if (this.existingAddon) {
         // Check various conditions related to upgrades
         if (this.addon.id != this.existingAddon.id) {
           zipreader.close();
           return Promise.reject([AddonManager.ERROR_INCORRECT_ID,
-                                 `Refusing to upgrade addon ${this.existingAddon.id} to different ID {this.addon.id}`]);
+                                 `Refusing to upgrade addon ${this.existingAddon.id} to different ID ${this.addon.id}`]);
         }
 
         if (this.existingAddon.type == "webextension" && this.addon.type != "webextension") {
           zipreader.close();
           return Promise.reject([AddonManager.ERROR_UNEXPECTED_ADDON_TYPE,
                                  "WebExtensions may not be upated to other extension types"]);
         }
       }