mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Fix error handling for offline support.
(untested. glasser told me what to type.)
This commit is contained in:
committed by
David Glasser
parent
49f5d41fd7
commit
6fffcda069
@@ -31,12 +31,12 @@ catalog.Refresh.OnceAtStart = function (options) {
|
||||
catalog.Refresh.OnceAtStart.prototype.beforeCommand = function () {
|
||||
var self = this;
|
||||
if (!catalog.refreshOrWarn(self.options)) {
|
||||
if (self.options.ignoreFailure) {
|
||||
if (self.options.ignoreErrors) {
|
||||
Console.debug("Failed to update package catalog, but will continue.");
|
||||
} else {
|
||||
Console.error("This command requires an up-to-date package catalog. Exiting.");
|
||||
// Avoid circular dependency.
|
||||
throw require('./main.js').ExitWithCode(1);
|
||||
throw new (require('./main.js').ExitWithCode)(1);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user