mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Make offline message only appear when we are actually offline
This commit is contained in:
@@ -74,8 +74,10 @@ var refreshOfficialCatalogOrDie = function (options) {
|
||||
};
|
||||
|
||||
var explainIfRefreshFailed = function () {
|
||||
Console.info("Your package catalog may be out of date.\n" +
|
||||
"Please connect to the internet and try again.");
|
||||
if (catalog.official.offline || catalog.refreshFailed) {
|
||||
Console.info("Your package catalog may be out of date.\n" +
|
||||
"Please connect to the internet and try again.");
|
||||
}
|
||||
};
|
||||
|
||||
// XXX: To formatters.js ?
|
||||
|
||||
Reference in New Issue
Block a user