mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-07 10:44:12 +01:00
Show a sensible error message when :extupdate is not available. Closes issue #79.
--HG-- extra : rebase_source : 912736e0c9146a6eca72285c21db3a195ed94f3a
This commit is contained in:
@@ -1445,6 +1445,8 @@ const Dactyl = Module("dactyl", {
|
|||||||
|
|
||||||
const updateAddons = Class("UpgradeListener", {
|
const updateAddons = Class("UpgradeListener", {
|
||||||
init: function init(addons) {
|
init: function init(addons) {
|
||||||
|
dactyl.assert(!addons.length || addons[0].findUpdates,
|
||||||
|
"Not available on " + config.host + " " + services.get("runtime").version);
|
||||||
this.remaining = addons;
|
this.remaining = addons;
|
||||||
this.upgrade = [];
|
this.upgrade = [];
|
||||||
dactyl.echomsg("Checking updates for addons: " + addons.map(function (a) a.name).join(", "));
|
dactyl.echomsg("Checking updates for addons: " + addons.map(function (a) a.name).join(", "));
|
||||||
|
|||||||
Reference in New Issue
Block a user