Print release name more prettily in 'meteor update' message.

Instead of "Meteor METEOR@1.0", print "Meteor 1.0".

This change is somewhat untested because in order to test it we need
1. a built release, and 2. installed 'meteor' to point to that built
release.
This commit is contained in:
Emily Stark
2014-10-20 22:54:22 -07:00
parent 79aa54bcde
commit 23eba80656

View File

@@ -1741,8 +1741,12 @@ var maybeUpdateRelease = function (options) {
if (!releaseVersionsToTry.length) {
// We could not find any releases newer than the one that we are on, on
// that track, so we are done.
var releaseToPrint = appRelease;
if (appTrack === "METEOR") {
releaseToPrint = appVersion;
}
Console.info(
"This project is already at Meteor " + appRelease +
"This project is already at Meteor " + releaseToPrint +
", which is newer than the latest release.");
return 0;
}