From 871166db46afd22e2aa83bc14afe263b9a2a795a Mon Sep 17 00:00:00 2001 From: Justin SB Date: Thu, 16 Oct 2014 15:35:17 -0700 Subject: [PATCH] Better explanation if we were offline --- tools/commands-packages.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/commands-packages.js b/tools/commands-packages.js index 4ead85a34a..a06d29b238 100644 --- a/tools/commands-packages.js +++ b/tools/commands-packages.js @@ -77,7 +77,9 @@ var refreshOfficialCatalogOrDie = function (options) { }; var explainIfRefreshFailed = function (command) { - if (command.catalogRefresh.refreshFailed) { + if (catalog.official.offline) { + Console.info("(But we're offline, so we didn't update the local catalog, so it might exist)"); + } else if (command.catalogRefresh.refreshFailed) { Console.info("(But the update of the local catalog failed, so it might exist)"); } };