From 7aa5bb3c6414ef61cfdecd18178a6d85b392e07f Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Tue, 12 Oct 2010 23:35:08 -0400 Subject: [PATCH] Show a sensible error message when :extupdate is not available. Closes issue #79. --HG-- extra : rebase_source : 912736e0c9146a6eca72285c21db3a195ed94f3a --- common/content/dactyl.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/content/dactyl.js b/common/content/dactyl.js index 1ea01244..58fa4b83 100644 --- a/common/content/dactyl.js +++ b/common/content/dactyl.js @@ -1445,6 +1445,8 @@ const Dactyl = Module("dactyl", { const updateAddons = Class("UpgradeListener", { init: function init(addons) { + dactyl.assert(!addons.length || addons[0].findUpdates, + "Not available on " + config.host + " " + services.get("runtime").version); this.remaining = addons; this.upgrade = []; dactyl.echomsg("Checking updates for addons: " + addons.map(function (a) a.name).join(", "));