Use correct error-printing Console function

Changes

  { [Error: Network error: wss://packages.meteor.com/websocket: Hostname/IP doesn't match certificate's altnames] stack: [Getter] }

into

  Network error: wss://packages.meteor.com/websocket: Hostname/IP doesn't match certificate's altnames
This commit is contained in:
David Glasser
2014-11-10 16:24:34 -08:00
parent dde817ea10
commit 96bae0e077

View File

@@ -32,7 +32,7 @@ catalog.Refresh.OnceAtStart.prototype.beforeCommand = function () {
if (self.options.ignoreErrors) {
Console.debug("Failed to update package catalog, but will continue.");
} else {
Console.error(catalog.refreshError);
Console.printError(catalog.refreshError);
Console.error("This command requires an up-to-date package catalog. Exiting.");
// Avoid circular dependency.
throw new (require('./main.js').ExitWithCode)(1);