From d98c6eac8d53fc009eca76e915035f2632f19da3 Mon Sep 17 00:00:00 2001 From: Sashko Stubailo Date: Tue, 21 Oct 2014 20:28:04 -0700 Subject: [PATCH] Change explainIfRefreshFailed to recommend connecting to the internet --- tools/commands-packages.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tools/commands-packages.js b/tools/commands-packages.js index 3099089e87..6cd1334e4c 100644 --- a/tools/commands-packages.js +++ b/tools/commands-packages.js @@ -74,11 +74,8 @@ var refreshOfficialCatalogOrDie = function (options) { }; var explainIfRefreshFailed = function () { - if (catalog.official.offline) { - Console.info("(But we're offline, so we didn't update the package catalog, so it might exist)"); - } else if (catalog.refreshFailed) { - Console.info("(But the update of the package catalog failed, so it might exist)"); - } + Console.info("Your package catalog may be out of date.\n" + + "Please connect to the internet and try again."); }; // XXX: To formatters.js ?